ref→http://www.nczonline.net/blog/2008/03/17/the-dreaded-operation-aborted-error/
- Move the
script
element so that it’s a direct child ofbody
. - Use
insertBefore()
to insert thediv
at the beginning ofbody
instead of the end. - Wait until the page is loaded before attempting to manipulate
document.body
.
我採用了
$(document).ready(function()
{
//TODO
})
這個方式的確是解決XD(大部份都是發生在IE8直接顯示錯誤並無法連結)
沒有留言:
張貼留言