dojo.string.substitute() 函数示例

前端之家收集整理的这篇文章主要介绍了dojo.string.substitute() 函数示例前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
var laboratory_others = {
		
		stringSubstitute: function(){

			console.log( 
				dojo.string.substitute(
					"${0} and ${1}.",["Jack","Jill"],function( str ){
						return str + "-----";
					}
				)
			);
			
		}
	
}


一定要写在 js 文件中,不能写在 jsp 文件中。



原文链接:https://www.f2er.com/dojo/291658.html

猜你在找的Dojo相关文章