JavaScript eval() 函数

释放双眼,带上耳机,听听看~!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
1<html>
2<body>
3
4<script type="text/javascript">
5
6eval("x=10;y=20;document.write(x*y)")
7document.write("<br />")
8
9document.write(eval("2+2"))
10document.write("<br />")
11
12var x=10
13document.write(eval(x+17))
14document.write("<br />")
15
16eval("alert('Hello world')")
17
18</script>
19
20</body>
21</html>
22

 

 

 

效果:

JavaScript eval() 函数

 

 

 

给TA打赏
共{{data.count}}人
人已打赏
安全技术

C/C++内存泄漏及检测

2022-1-11 12:36:11

安全资讯

报道称黑客组织ShinyHunters正在暗网市场兜售超7300万条用户记录

2020-5-12 11:36:11

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索