Internet Explorer Incompatibility - page just shows “[object Object]” WTH?

后端 未结 2 1456
醉梦人生
醉梦人生 2020-12-20 15:06

When I click on a URL with the link \"javascript:$(\'#dialog-modal\').dialog(\'open\');\" in Chrome and FF my Jquery dialog loads. In Internet explorer 8 the page source dis

2条回答
  •  粉色の甜心
    2020-12-20 15:29

    The problem is IE8 expects you to do something with the click event. The below code works and has been tested in Firefox, chrome, IE8. Notice you need the void(0) to make it work.

       OK
    

    Or you can use this syntax:

       OK
    

提交回复
热议问题