需要注意拼接格式 var html ='<a class="blue" href="javascript:void(0)" οnclick=viewTest("'+taskSqu+'")>测试</a>';