[JS]Multy language by javascript

2017-11-29 写技术

var get_lan=function(){ $(".lan").each(function(){ var lan_key=$(this).attr("data_lan"); lan_key="g_lan."+lan_key; var lan_key=eval("("+lan_key+")"); $(this).text(lan_val); }) }

标签: JS

发表评论:

Powered by anycle 湘ICP备15001973号-1