JSLint “[removed] can be a form of eval” - How is this so?

前端 未结 1 1827
慢半拍i
慢半拍i 2020-12-31 10:00

I\'ve come across this message in JSLint...

document.write can be a form of eval.

and was wondering exactly how so?

The

相关标签:
1条回答
  • What does your browser do with this?

    document.write('<script type="text/javascript">window.alert("evaled " + (1 + 2))</script>');
    
    0 讨论(0)
提交回复
热议问题