您宁愿发送JSON,它也更易于解释。例:
// Suppose your response is a string:// { html: "<p>add me to the page</p>, script:"alert('execute me');" }var obj = eval( "(" + response + ")" ) ;eval( obj.script ) ;
欢迎分享,转载请注明来源:内存溢出
您宁愿发送JSON,它也更易于解释。例:
// Suppose your response is a string:// { html: "<p>add me to the page</p>, script:"alert('execute me');" }var obj = eval( "(" + response + ")" ) ;eval( obj.script ) ;
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)