js调用函数的格式

如题

onclick='alert(\""+"&#1"+"\")' 
onclick='alert(encodeURIComponent(\""+"&#1"+"\"))'
 onclick='changeUrl(\""+"materials"+"\",encodeURI(encodeURI(\"" + data[i].materials +"\"))," +data[i].id+")'
onclick='changeUrl(this,"+data[i].id+")' 

 

posted @ 2016-09-20 18:48  wujixing909  阅读(306)  评论(0编辑  收藏  举报