0
var x = document.getElementById('comments');
x.innerHTML=  '[% PROCESS bug/comments.html.tmpl'+
            ' comments = bug.comments,'+
            ' mode = "edit" %] ';

我没有看到任何类型的无效字符,我也尝试使用双斜杠 (//)。我错过了什么?

4

1 回答 1

0

我认为您的代码必须是这样的

var x = document.getElementById('comments');
x.innerHTML=  '[%~ PROCESS bug/comments.html.tmpl comments = bug.comments, mode = "edit" ~%]';
于 2013-09-30T18:05:47.010 回答