有谁知道为什么Tool_AJAX.loadString("' + split[i] + '");
不工作?
即使这条线工作正常..
split[i] = 'Hello'
alert('Tool_AJAX.loadString("' + split[i] + '")');
Output: Tool_AJAX.loadString("Hello");
这是麻烦的代码..
body +=
'<tr>' +
'<td><h4><a href="javascript:;" onclick="Tool_AJAX.loadString("' + split[i] + '");">' + split[i] + '</a></h4></td>' +
'<td>Dummy</td>' +
'<td>Dummy</td>' +
'</tr>';
Error: SyntaxError: syntax error
Source File: http://localhost:8080/Tool/
Line: 1, Column: 32
Source Code:
Tool_AJAX.loadString(
Tool_AJAX
被定义为..
var Tool_AJAX = {
loadString: function(string){