我在网页中引用了一个外部js文件,当使用IE的开发者工具查看js时,发现被引用进去的有两个js
例如:我的js文件名为aa.js
结果查看时发现,有aa.js,还有aa.js?_12847274638这样一个文件,请告诉我是什么情况,如何去掉。
谢谢
例如:我的js文件名为aa.js
结果查看时发现,有aa.js,还有aa.js?_12847274638这样一个文件,请告诉我是什么情况,如何去掉。
谢谢
解决方案 »
- Jqeury 取iframe 的值
- IE6下为什么加载了object页面的title会被改成#
- Google地理位置抓取
- 同一IP用户10分钟内只能点击一次的功能怎么实现
- js 获得tr中的input对象的值?
- 窗口拖放功能,大家帮忙
- 前日寻得一段代码,看不懂
- Web开发问题
- 请教:javascript如何动态的删除表单内的控件。急,在线等待。
- 求科普求赐教!!!像美团外卖这种app是怎么根据用户输入的食物中自动匹配最近的商家地址的?有什么自动匹配的算法吗?还是百度地图api自动定位的??
- 请问如何在jQuery方法中判断触发方式的?
- 请教一个jquery blur()和focus()联用的奇怪问题
function include(src,encoding,fun)
{
var s = document.createElement('script');
s.type='text/javascript';
s.charset=encoding; //'gb2312';
s.src = src;
var tags =document.getElementsByTagName('head');
if(typeof(fun)=='function'){
if( document.all ){
s.onreadystatechange = function(){
if(/(complete|loaded)/.test(this.readyState)){
fun(); s.onreadystatechange = null; s.parentNode.removeChild(s);
}};
}else{
s.onload = function(){ fun(); s.onload = null; s.parentNode.removeChild(s); };
}
}
tags[0].appendChild(s);
};
要加载几个都可以!
像我们引用 就有两种方式
<%=Html.ScriptInclude("~/Scripts/jQuery/jquery.js")%>
<script type="text/javascript" src="jquery/jquery.js"></script>