天天看点

html拼接路径字符串

<li onclick="load('+cid+',1,\''+rname+'\')"><a href="javascript:void(0)">首页</a></li>';      
用\'和\'转义
\''+rname+'\'      

继续阅读