- Timestamp:
- Mar 18, 2017 12:36:17 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/js/Utilities.js
r552 r590 22 22 23 23 /* 24 * Emulates a sprintf function. 24 Emulates a sprintf function. Placeholders are {1}âŠ{N}. 25 Some versions of this function were zero-indexed; this one is not. 25 26 --------------------------------------------------------------------- 26 "{ 0} is dead, but {1} is alive! {0} {2}".format("ASP", "ASP.NET")27 "{1} is dead, but {2} is alive! {1} {3}".format("ASP", "ASP.NET") 27 28 28 29 outputs 29 30 30 ASP is dead, but ASP.NET is alive! ASP { 2}31 ASP is dead, but ASP.NET is alive! ASP {3} 31 32 --------------------------------------------------------------------- 32 33 *
Note: See TracChangeset
for help on using the changeset viewer.