Home > Backend Development > PHP Tutorial > javascript - How to change the style of thinkphp template assignment?

javascript - How to change the style of thinkphp template assignment?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-09-11 11:34:17
Original
1172 people have browsed it

<foreach name='data' item='info'>
     <div style="margin-left: 10px;">{$info}</div>                                       
</foreach>
Copy after login
Copy after login

Assign data to the template and want to change the table style. How to achieve this?
For example, the data obtained
09.09 21:03:13 [Server] INFO Saving is already turned on
I want to change it to the corresponding Chinese characters, how to deal with it?

Reply content:

<foreach name='data' item='info'>
     <div style="margin-left: 10px;">{$info}</div>                                       
</foreach>
Copy after login
Copy after login

Assign data to the template and want to change the table style. How to achieve this?
For example, the data obtained
09.09 21:03:13 [Server] INFO Saving is already turned on
I want to change it to the corresponding Chinese characters, how to deal with it?

Do a data encapsulation before transmission?

Change English to corresponding Chinese characters? Unless you prepare the corresponding translation in advance

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
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
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