如果一个项目接手的人比较多或者是以前的老项目,大家肯定碰到过用jquery会影响已有的页面效果,或者重复引用jquery库造成莫名其妙的bug,直接上代码,很简单一句话代码搞定:

<scripttype=”text/javascript”>window.jQuery || document.write(‘<scripttype=”text/javascript”src=”/js/jquery.min.js”></script>’);</script>

Sorry, the comment form is closed at this time.

   
© 2012 Ai-WEB的博客 Suffusion theme by Sayontan Sinha