解决onclick点击事件传参带有特殊字符串的问题

 <a href="javascript:messagesd(\''+errlog+'\')" onclick="" >查看</div></a>;

注:messagesd点击触发的函数;errlog要传入的参数