普通网友 2017-02-20 06:39 采纳率: 0%
浏览 1525

html邮件模板如何循环变量数组

下边是原模板,这个时候数组是固定长度(3)的date,但是我现在想扫表,发每天的数据,所以得到的是一个变量数组长度i不确定date[i],如何在html模板中做循环,求大神在html上写下,谢谢

 <?xml version="1.0" encoding="UTF-8"?>
<xml-body>
    <html>
        <head>

        </head>

        <body link="blue" vlink="purple"
            style="tab-interval:21.0pt;text-justify-trim:
punctuation">

            <div style='layout-grid:21.15pt'>

                <p>
                    <span
                        style='font-family:宋体;mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;mso-fareast-font-family:宋体;mso-fareast-theme-font:
minor-fareast;mso-hansi-font-family:Cambria;mso-hansi-theme-font:minor-latin'>亲爱的{0},您好!</span>
                </p>

                <p>
                    <span>
                        <span style='mso-tab-count:1'>

                        </span>
                    </span>
                    <span
                        style='font-family:宋体;mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;mso-fareast-font-family:宋体;mso-fareast-theme-font:
minor-fareast;mso-hansi-font-family:Cambria;mso-hansi-theme-font:minor-latin'>您正在绑定安全邮箱,验证码:{1},请在{2}分钟内完成输入。</span>
                </p>
                <p>
                    <span>
                        <span style='mso-tab-count:1'>
                        </span>
                    </span>
                    <span
                        style='font-family:宋体;mso-ascii-font-family:Cambria;mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family:
Cambria;mso-hansi-theme-font:minor-latin'>为了您的信息安全,切勿将验证码透露于他人。</span>

                </p>

                <p>
                    <span>
                        <span style='mso-tab-count:1'>
                        </span>
                    </span>
                    <span
                        style='font-family:宋体;mso-ascii-font-family:Cambria;mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family:
Cambria;mso-hansi-theme-font:minor-latin'>注意:如非本人操作,请及时登录并修改密码以保证账户安全。</span>
                </p>


            </div>

        </body>

    </html>


</xml-body>
  • 写回答

4条回答 默认 最新

  • zwxiaoliu 2017-02-20 07:13
    关注

    什么意思,单纯的html? html只是文本文件,没有处理能力呀。 需要使用js 或者 模板语言。

    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!