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
WBOYOriginal
2016-09-11 11:34:171131browse

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

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>

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

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