document.write("<div id='MainDiv' style='width:600px;margin:auto;'>")
在浏览器中打开文件时出现如下错误
Uncaught Syntax Error: Unexpected token ILLEGAL
这个问题有什么解决办法吗?
最佳答案
试试这个:
document.write("<div id='MainDiv' style='width:600px;margin:auto;'>")
关于javascript - document.write 未捕获语法错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30507783/