在js中难免会用到el表达式,但是有时候我们会发现,如果直接使用会报错,可能会报未定义之类的,如 var a=${},这样是不行的,但是如果在el表达式外加上单引号或者双引号就OK了,如: var a="${}" 或者var a='${}' 都是可以的