奇怪的赋值

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>


<script>
var a = 'hello'
var b = 'aaa'
alert(a=b)
</script>
</body>

 

结果:报错?正确?请自行尝试(java同理)

posted @ 2019-02-18 11:38  海中松树  阅读(135)  评论(0编辑  收藏  举报