dojo.string.substitute() 函数示例

前端之家收集整理的这篇文章主要介绍了dojo.string.substitute() 函数示例前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
  1. var laboratory_others = {
  2. stringSubstitute: function(){
  3.  
  4. console.log(
  5. dojo.string.substitute(
  6. "${0} and ${1}.",["Jack","Jill"],function( str ){
  7. return str + "-----";
  8. }
  9. )
  10. );
  11. }
  12. }


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



猜你在找的Dojo相关文章