跳到主要内容
CNode

引用视图之前传入js弹出问题

社区
Sshaniu00发布于 13 年前最后回复 13 年前
239220
enter code here   view["alerts"]=  "<script>alert('sucess')</script>";
                         res.render("user/list", view);

这种情况怎么办 弹不了

查看回复

回复 (2)

L
leapon#213 年前

你的 script tag 可能被 encoded. 看 html 源码就知道了。

L
leapon#113 年前

check html source

参与回复

登录后即可参与回复。登录