var laboratory_others = {
stringSubstitute: function(){
console.log(
dojo.string.substitute(
"${0} and ${1}."
, ["Jack", "Jill"]
, function( str ){
return str + "-----";
}
)
);
}
}
一定要写在 js 文件中,不能写在 jsp 文件中。