标签:
1. document.write(‘<script src="http://echarts.baidu.com/echarts2/doc/asset/js/jquery.min.js"></script>‘);
会导致页面刷新
2. var script = document.createElement("script");
script.type="text/javascript";
script.src= ‘http://echarts.baidu.com/echarts2/doc/asset/js/jquery.min.js‘;
document.body.appendChild(script);
完美解决
标签:
原文地址:http://www.cnblogs.com/dejun/p/5650836.html