jquery和prototype并存及冲突解决 - TOMMYHU - 专注互联网开发及运营技术,提供相关资料及软件下载,奇趣网络时事评论!
May 20

jquery和prototype并存及冲突解决 不指定

jquery和prototype并存及冲突解决
<script type=”text/javascript”>
      jQuery.noConflict();
</script>

上面是之前网上说的不行,下面这个方法可以,注意一定要按照这个顺序来
<script language = "JavaScript" src="jquery-v1.3.2.js" type = "text/javascript"></script><!--JQuery-->
<script type="text/javascript">var jQuery=$;</script>
<script language = "JavaScript" src="prototype.js" type = "text/javascript"></script>
<script>
function ajaxload(objid){
  jQuery.ajax({
  cache: "False",
  type: "post",
  url: "loaddata.asp",
  data: "",
  success: function(msg){
      jQuery("#"+objid).html(msg);
  },
  error: function(){
  }
  });
}
</script>
▲返回顶部
Last modified by tommyhu on2011/05/20 09:27

互联网开发网友 Email Homepage
2011/05/20 11:24
很不错,谢谢楼主指点!
Pages: 1/1 First page 1 Final page
Add a comment

Nickname

emotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemot