在jQurry中要动态执行从服务器端返回的Html片断,可用jQurry中的globalEval()方法。
举例如下:
let scriptCode='alert("hello")';
$.globalEval(scriptCode);
在jQurry中要动态执行从服务器端返回的Html片断,可用jQurry中的globalEval()方法。
举例如下:
let scriptCode='alert("hello")';
$.globalEval(scriptCode);