如何使用jQuery动态的在body里添加script标签?

var script = document.createElement('script');
script.type = 'text/jacascript';
script.src = 'url';     //填自己的js路径
$('body').append(script);

这个绝对稳,完美规避</script>问题

原文地址:https://www.cnblogs.com/ghfjj/p/6270320.html