Results 1 to 2 of 2

Thread: template 里汉字的问题

  1. #1
    lssman is offline Senior Member
    Join Date
    May 2010
    Posts
    20

    Unhappy template 里汉字的问题


    因为我想根据状态信息显示不同的背景颜色,但是状态是汉字我在template里加了如下判断

    {if ("$rowData.$col == "新增")} fda {/if}
    看上去这个始终不成立我又打印 值{$rowData.$col } ,它可以显示新增 这2个汉字。
    我又这样测试

    {assign var='newcol' value="新增"}
    {if ($newcol == "新增")} fda {/if}
    这个时候就成立。 我在想是不是$rowData.$col这里出问题了,现在没思路了求解答!

  2. #2
    lssman is offline Senior Member
    Join Date
    May 2010
    Posts
    20

    Default Re: template 里汉字的问题

    这是由于编码问题造成的,只要将template另存为utf-8格式就可以了,结贴。

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 2010-03-17, 09:37 AM
  2. 关于项目字段和快速创建的问题
    By wkx_666 in forum Chinese
    Replies: 4
    Last Post: 2009-10-30, 12:35 AM
  3. listview字段配置的问题
    By thinktodo in forum Chinese
    Replies: 3
    Last Post: 2009-06-26, 01:28 AM
  4. 修改列表页面字段宽度的问题
    By thinktodo in forum Chinese
    Replies: 0
    Last Post: 2009-05-06, 05:29 AM
  5. Replies: 2
    Last Post: 2008-09-26, 09:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •