Security risks of using eval() to execute user input in JavaScript

前端 未结 7 1432
伪装坚强ぢ
伪装坚强ぢ 2020-12-07 02:31

I\'m planning on throwing together a quick web page for my students to teach them about JavaScript programming. On this page, I\'d like to give them a text box and allow the

7条回答
  •  温柔的废话
    2020-12-07 02:52

    It will be running on their own machine. Just don't let them save strings and send to other people -- also don't put the values in the URL via a GET (so that it can be emailed).

提交回复
热议问题