/*! * Zving JS Library * Copyright (c) 2012, zving.com Inc. All rights reserved. * Thanks to: jQuery.UI,Ext.JS,Tangram */ (function() { var _Zving = window.Zving; //window.undefined = window.undefined; var scripts = document.getElementsByTagName('script'), script = scripts[scripts.length - 1], jspath = script.hasAttribute ? script.src : script.getAttribute('src', 4); //ie下通过getAttribute('src', 4)才能获取全路径 var uri2varName = '_' + document.URL.split("#")[0].split("=")[0].replace(location.protocol + '//' + location.host, '').replace(/[^A-Za-z0-9\/]/g, '').replace(/\//g, '_'); //将URI处理为符合变量命名规则的字符串,可作前缀用于创建各页面不同复的命名空间或对象 /*