NameJavaScriptGroup group = new NameJavaScript();
group.addNameHyperlink(new NameJavaScript(new NameJavaScript("javascript",new JavaScriptImpl(
"$.ajax({"+
"type:'post',"+
"url:'/test/TestAction.do?method=query',"+
"dataType:html,"+
"success:function(data,status){"+
“var total=$(data).find('totalRecords').text();{if(total!=0){"+
" window.loaction.href="";”+
}}}"
});
)
)
)
);
cellA2.setNameHyperlinkGroup(group);
给单元格添加超链接,走一个.do 根据返回的记录数打开一个rtf的文件
难道不能这样写吗?报语法错误