This question shows research effort; it is useful and clear
15
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
在 jQuery 中:
$('<script>alert("foo");</script>')
// nothing shows up
// wrap it in a <p>
$('<script>alert("foo");</script>').wrap('<p>')
// oh no, an alert just popped up.
是否$('any string what so ever')能够使 JavaScript 在任何浏览器上执行?