You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
316 B
Plaintext

11 months ago
//定义多语言.
$(".lang").each(function (index, item) {
var key = $(item).attr("data-key");
var val = "";
$.each(window.lang, function (i, n) {
if (i == key) {
val = n;
return false;
}
});
if (val.length > 0) {
$(item).text(val);
}
});