jsp、html读取properties文件中的配置

引入jquery.i18n.properties-min.js

https://download.csdn.net/download/forlovehuan/10647497

    <script type="text/javascript" src="js/jquery.i18n.properties-min.js">   
</script>


function initpro(){
    jQuery.i18n.properties({// 加载properties文件  
        name:'common', // properties文件名称  
        path:'/commonpro/', // properties文件路径    
        mode:'map', // 用 Map 的方式使用资源文件中的值  
        callback: function() {// 加载成功后设置显示内容  
            weburl=$.i18n.prop("weburl");//其中isp_index为properties文件中需要查找到的数据的key值  
        }  
        });  
}

猜你喜欢

转载自blog.csdn.net/FORLOVEHUAN/article/details/82427642