我在 ASP.NET 中有一个更新面板,可以进行部分页面刷新。
我使用 jQuery 取得了一些成功on()
方法不过$(document).ready(function(){})
仅在页面初始加载期间调用,而不是在每次 updatepanel 刷新后调用。
我想我可以使用'ScriptManager.RegisterStartupScript()
'但更喜欢“更干净”的方法。存在吗?
你应该使用pageLoad http://encosia.com/document-ready-and-pageload-are-not-the-same/JS 中的 () 函数
function pageLoad()
{
// put your code when returning from update panel request.
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)