jQuery.i18n.properties实现前端国际化
来源:互联网 发布:梦诺干红,知乎 编辑:程序博客网 时间:2024/06/05 05:20
jQuery.i18n.properties的下载地址:
jquery.i18n.properties-1.0.9.js:下载地址:http://download.csdn.net/detail/snails_zx/9224023
jquery.i18n.properties-min-1.0.9.js:下载地址:http://download.csdn.net/detail/snails_zx/9224023
新建2个文件
strings.properties
strings_zh.properties
内容分别为
strings.properties
user=user namepwd = password
strings_zh.properties
user=用户名pwd = 密码
关键代码
jQuery.i18n.properties({ name : 'strings', //资源文件名称 path : '/i18n/', //资源文件路径 mode : 'map', //用Map的方式使用资源文件中的值 language : 'zh', callback : function() {//加载成功后设置显示内容 alert($.i18n.prop('user')); alert($.i18n.prop('pwd')); } });
1 0
- jQuery.i18n.properties实现前端国际化
- jQuery.i18n.properties实现前端国际化
- 使用 jQuery.i18n.properties 实现 Web 前端的国际化
- 使用 jQuery.i18n.properties 实现 Web 前端的国际化
- 使用 jQuery.i18n.properties 实现Web 前端的国际化
- 使用 jQuery.i18n.properties 实现Web 前端的国际化
- 使用 jQuery.i18n.properties 实现 Web 前端的国际化
- 基于jQuery.i18n.properties 实现前端页面的资源国际化
- 使用 jQuery.i18n.properties 实现 Web 前端的国际化
- 使用 jQuery.i18n.properties 实现 Web 前端的国际化
- 使用 jQuery.i18n.properties 实现 Web 前端的国际化
- 使用 jQuery.i18n.properties 实现 Web 前端的国际化
- 使用jquery.i18n.properties 实现web前端国际化
- 基于jQuery.i18n.properties插件实现前端页面国际化
- jQuery之前端国际化jQuery.i18n.properties
- jQuery之前端国际化jQuery.i18n.properties
- jQuery之前端国际化jQuery.i18n.properties
- Web前端国际化之jQuery.i18n.properties
- Emoji表情符号兼容方案
- windows 下Cassandra 单节点安装配置
- Android启动外部Activity时必须添加的Flag
- 欢迎使用CSDN-markdown编辑器
- modelsim相关
- jQuery.i18n.properties实现前端国际化
- 个人笔记 js 10 计算当前访客数
- HRP项目日志二
- span设置宽度有效无效问题
- Centos安装FastDFS+Nginx(一天时间搞定)
- 对象导论的学习
- C# 给PDF文件添加水印
- 个人笔记 js 12 js返回上一页
- github笔记2