<script>
var ss= <%= param.username %>;
var aa = param.username;
console.log(ss);
console.log(aa);
</script>
我试了两种: ss的结果:Unexpected token ILLEGAL aa的结果:param未定义
<script>
var ss= <%= param.username %>;
var aa = param.username;
console.log(ss);
console.log(aa);
</script>
我试了两种: ss的结果:Unexpected token ILLEGAL aa的结果:param未定义