步驟一:引入js
javascript
<script type="text/javascript" src="../js/jquery.i18n.properties-min-1.0.9.js"></script>
步驟二html
<script type="text/javascript"> $.i18n.properties({ name:'messageResources', language:'zh_CN', path:'../resource/', mode:'map', callback:function(){ $("#test").html($.i18n.prop('language')); } }); </script>