tag"} } ] } ]
Home > Web Front-end > JS Tutorial > body text

How to use el expression in tag

亚连
Release: 2018-05-17 10:51:53
Original
3044 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!