var script = document.createElement(‘script‘); script.type = ‘text/jacascript‘; script.src = ‘url‘; //填自己的js路径 $(‘body‘).append(script);
这个绝对稳,完美规避</script>问题
时间: 2024-11-25 23:38:24
var script = document.createElement(‘script‘); script.type = ‘text/jacascript‘; script.src = ‘url‘; //填自己的js路径 $(‘body‘).append(script);
这个绝对稳,完美规避</script>问题