jQuery中location('')函数在Chrome中显示Uncaught ReferenceError: load is not defined错误
在jsp界面中给dialog添加了一个Button按钮:
buttons: [
{
id: 'registerBtn',
//disabled: true,
text: '注册',
handler:function(){
location('register.jsp');
}
}
]
希望实现页面的跳转,到达register.jsp。
但结果在IE下可以实现,在Chrome无法实现跳转,显示:
Uncaught ReferenceError: load is not defined
$dialog.dialog.buttons.handler