【JQuery】each在弘帝建站系统中的应用
前端技术帮助您二次开发弘帝建站系统,由于弘帝建站系统后期开发过程中,全部采用英文,故后台显示的都是英文,翻译工作将由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
页:
[1]