jquery .load方法不执行脚本文件 [英] jquery .load method not executing script files
本文介绍了jquery .load方法不执行脚本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<div class="slider" id="acclayout">
<script src="Models/AccountInfoModel.js"></script>
<script src="Models/ZipCodeEntityModel.js"></script>
<script src="BusinessDelegates/AccountInfoDelegate.js"></script>
<script src="ViewsConfig/AccountInfoConfig.js"></script>
<div class="slider" id="a">
<table a=""> . . . . </table>br mode="hold" /></div>
$(function() {
$("#rightContainer").load("biz_AccountInfo #accountInfoLayout");
});
这里我使用jquery .load方法来替换div
我的问题是我在我的页面中获取表视图但参考脚本不起作用(上面的脚本)当我把调试器放在它不工作时请帮助我。
here i use jquery .load method to replace div
My problem is i am getting table view in my page but reference scripts are not working (above scripts) when i put debugger it is not working please help me.
推荐答案
( function (){
( #rightContainer)。load( biz_AccountInfo #accountInfoLayout);
});
("#rightContainer").load("biz_AccountInfo #accountInfoLayout"); });
这里我使用jquery .load方法来替换div
我的问题是我在我的页面中获取表视图但参考脚本不起作用(上面的脚本)当我把调试器放在它不工作时请帮帮我。
here i use jquery .load method to replace div
My problem is i am getting table view in my page but reference scripts are not working (above scripts) when i put debugger it is not working please help me.
当加载方法与url一起使用AND后缀所有脚本都是在解析之前删除... http://api.jquery.com/load/ [ ^ ](在加载页面碎片时)
When load method used with url AND suffix all scripts are removed before parsing...http://api.jquery.com/load/[^](at Loading Page Fragments)
这篇关于jquery .load方法不执行脚本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文