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?

WBOY
Release: 2016-09-11 11:34:17
Original
1127 people have browsed it

<code class="php"><foreach name='data' item='info'>
     <div style="margin-left: 10px;">{$info}</div>                                       
</foreach></code>
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:

<code class="php"><foreach name='data' item='info'>
     <div style="margin-left: 10px;">{$info}</div>                                       
</foreach></code>
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:
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