⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cross_site.js

📁 ruby on rails web敏捷开发之路第二版 源代码
💻 JS
字号:
// Modifies Prototype so that Ajax requests ask permission to go cross-site.// Useful for pages that are run from the local filesystem.CrossSite = {  wrap: function(original) {    return function() {      try {       netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");      } catch (e) {        //alert("caught " + e);      }      original.apply(this, arguments);    }  }}Ajax.Request.prototype.initialize = CrossSite.wrap(Ajax.Request.prototype.initialize);Ajax.Request.prototype.onStateChange = CrossSite.wrap(Ajax.Request.prototype.onStateChange);Ajax.Updater.prototype.initialize = CrossSite.wrap(Ajax.Updater.prototype.initialize);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -