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

How to use el expression in tag

亚连
Release: 2018-05-17 10:51:53
Original
3142 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:
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
Latest Issues
Ajax submit script submission error
From 1970-01-01 08:00:00
0
0
0
How to use the created hook in the setup script
From 1970-01-01 08:00:00
0
0
0
javascript - script tag async attribute
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template