标签: javascript jquery
可能重复: JavaScript equivalent to printf/string.format Equivalent of String.format in JQuery
是否有任何构建的javascript或jquery函数在string.format()中表现得像.net?
或者像javascript的console.log字符串repclament?
console.log('aString%s','valueToReplace')
答案 0 :(得分:1)
没有本机解决方案,但这是许多部分解决方案之一:http://monocleglobe.wordpress.com/2010/01/12/everybody-needs-a-little-printf-in-their-javascript/