Home >Web Front-end >JS Tutorial >How to use el expression in tag

How to use el expression in tag

亚连
亚连Original
2018-05-17 10:51:533115browse

Let me explain to you how to use elexpression# in the <script></script> tag

##The core of the problem lies in

${}

ObjectType

If it is a java object, of course it cannot be obtained

If it is specific to the value of

string, then it can be used as long as you add quotation marks

So, the background can put java object before putting it into

model The object is converted into a json string. In this way, you can directly define an object in js and assign it a value of ${}

The above is what I compiled for you in tag. For more information, please follow other related articles on the PHP Chinese website!

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