0x800a139e - JavaScript runtime error: SyntaxError

后端 未结 3 1366
予麋鹿
予麋鹿 2020-12-06 02:17

I\'m new to Visual Studio Express 2012 for Windows 8.

I have been able to get a simple app to work just fine, but it would throw the same \"exceptions\".

So

相关标签:
3条回答
  • 2020-12-06 02:46

    If the window object is available, define a window.onerror function to catch all uncaught exceptions:

     window.onerror = function (message, url, lineNo)
      {
      console.log('Error: ' + message + '\n' + 'Line Number: ' + lineNo);
    
      return true;
      }
    
    console.log(window);
    console.log(1=2);
    

    References

    • Better Error Handling With window.onerror

    • W3C Wiki: window.onerror

    0 讨论(0)
  • 2020-12-06 03:01

    I had the same error when I moved my web page from VS10 to VS12. I thought the problem was somehow having to do with the transfer. I read the above questions and answers and concluded that my error was testing using Windows 8.1 and IE 11. I tested my VS12 version software using the FireFox browser and the error has gone. I don't know how to change the jQuery in IE 11 to build 1.x. If I did I would because I want my software to operate using the most popular browsers.

    Thank you for all your help.

    0 讨论(0)
  • 2020-12-06 03:04

    I encountered a similar issue with jQuery when using IE11. It turns out that even though JQuery 2.1.1 claims to be IE11 compatible, I found that in some situations it's not and returns errors. Try using the most recent JQuery 1.X build. it has the exact same functionality as 2.1.1, but still has the compatibility checks for IE 7, 8 and 9 that were removed in 2.1.1.

    0 讨论(0)
提交回复
热议问题