有时返回的$find()
方法,有人可以帮我解决这个问题。Sys.Application.add_load
null
请注意
这是一个IE 9特定问题
偶尔发生
方法
$('#id')
返回正确的 jQuery 对象我试图找到的元素是
SPAN
内部RadDockZone
$find()
页面加载后同样的函数返回AJAX组件
代码
Sys.Application.add_load(gridRefresh_ctl00_contentPlaceHolder_ctl02_2_C_ctl00_GridBooking);
function gridRefresh_ctl00_contentPlaceHolder_ctl02_2_C_ctl00_GridBooking() {
var gridctl00_contentPlaceHolder_ctl02_2_C_ctl00_GridBooking = $find('ctl00_contentPlaceHolder_ctl02_2_C_ctl00_GridBooking');
Sys.Application.remove_load(gridRefresh_ctl00_contentPlaceHolder_ctl02_2_C_ctl00_GridBooking);
if(gridctl00_contentPlaceHolder_ctl02_2_C_ctl00_GridBooking._customData['RefreshOnPageLoad'])
gridctl00_contentPlaceHolder_ctl02_2_C_ctl00_GridBooking.refresh();
}