请选择 进入手机版 | 继续访问电脑版

弘帝企业智能建站系统交流平台

 找回密码
 立即注册
查看: 1382|回复: 0

【JQuery】each在弘帝建站系统中的应用

[复制链接]
发表于 2020-10-24 23:12:10 | 显示全部楼层 |阅读模式
前端技术帮助您二次开发弘帝建站系统,由于弘帝建站系统后期开发过程中,全部采用英文,故后台显示的都是英文,翻译工作将由JS来实现。
弘帝会员管理中用到:将核心组件的英文转换成中文标题
//第一处应用
$("table tr th").each(function () {
    if ($(this).index() === 10) return;
    if ($(this).html() !== "") $(this).html(eval("member.caption." + $(this).html()));
    if ($(this).attr("class") === "op") $(this).html(common.operator);
});
//第二处应用
$("table tr td").each(function () {
    if ($(this).index() === 2) $(this).html(eval("member.caption." + $(this).html()));
});

位置:hondy.site.login.js.member.js



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|弘帝企业智能建站系统 ( 皖ICP备07503252号 )

GMT+8, 2024-3-29 18:30 , Processed in 0.102067 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表