var x = document.getElementById('comments');
x.innerHTML= '[% PROCESS bug/comments.html.tmpl'+
' comments = bug.comments,'+
' mode = "edit" %] ';
我没有看到任何类型的无效字符,我也尝试过双斜杠(//)。我错过了什么?
答案 0 :(得分:0)
我认为你的代码必须是这样的
var x = document.getElementById('comments');
x.innerHTML= '[%~ PROCESS bug/comments.html.tmpl comments = bug.comments, mode = "edit" ~%]';