Home  >  Article  >  Web Front-end  >  javaScript使用EL表达式的几种方式_javascript技巧

javaScript使用EL表达式的几种方式_javascript技巧

WBOY
WBOYOriginal
2016-05-16 16:46:391524browse

1.可以使用双引号将EL表达式括起来,这个不是对所有的都行,只对适合${param}这种类型

2.可以将其作为javaScript中的函数的参数。

3.使用隐藏表单域将值传过去原理和(1)是一样的!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn