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

📄 sa_page.js

📁 javascript 很酷的类库
💻 JS
字号:
/*
 * Isomorphic SmartClient
 * Version 6.5 (2008-04-30)
 * Copyright(c) 1998-2007 Isomorphic Software, Inc. All rights reserved.
 * "SmartClient" is a trademark of Isomorphic Software, Inc.
 *
 * licensing@smartclient.com
 *
 * http://smartclient.com/license
 */
 isc.defineStandaloneClass("SA_Page", {_isLoaded : false,_pageLoadCallbacks: [],isLoaded : function () {    return this._isLoaded;},onLoad : function (callback, target, args) {    this._pageLoadCallbacks.push({        method: callback,        target: target,        args: args    });    if (!this._registeredOnload) {        this._registeredOnload = true;        // HACK: Opera: addEventListener("load") fires seemingly on every externally loaded        // file in Opera.  But Opera emulates IE's attachEvent(), and fires load normally.        if (isc.Browser.isIE || isc.Browser.isOpera) {            window.attachEvent("onload", function () { isc.SA_Page._firePageLoadCallbacks(); });        } else {            window.addEventListener("load", function () { isc.SA_Page._firePageLoadCallbacks(); }, true);        }    }},_firePageLoadCallbacks : function () {    // Moz/FF has a bug: if you register a page onload event, but navigate away from the page    // before the page finishes loading, the onload event may fire on the page that you    // navigated away to - even if it's a completely different site.  This typically results in    // a JS error.    //    // Also - this can be fored from EventHandler.handeLoad(), so trap double call.    if (!window.isc || this._isLoaded) return;    // flag page as loaded    this._isLoaded = true;    // process all callbacks    for (var i = 0; i < this._pageLoadCallbacks.length; i++) {        var callback = this._pageLoadCallbacks[i];        this.fireSimpleCallback(callback);    }    delete this._pageLoadCallbacks;}});isc.SA_Page.onLoad(function () { this._isLoaded = true; }, isc.SA_Page);

⌨️ 快捷键说明

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