jsツリー制御スクリプトコード_javascriptスキル
/*------------------------------------------------ -------------------------*
| 件名: JavaScript フレームワーク
| 著者: meizz
| 作成日: 2005-02-27
| バージョン: 2006-08-11
|---------------------------------
| MSN:huangfr@msn.com QQ:112889082
| http://www.meizz.com 著作権 (c) meizz MIT スタイル ライセンス
| 上記の著作権に関する通知とこの許可に関する通知は、
| となります。 ソフトウェアのすべてのコピーまたはかなりの部分に含まれる
*-------------------------------------- ---------------------------------------*/
window.System = function(){this.setHashCode();}
System.debug=true; //false
System._codebase={};
試してください
{
if (window!=parent && parent.System && parent.System._codebase)
System._codebase = parent.System._codebase;
else if ("未定義"!=typeof opener&&opener.System&&opener.System._codebase)
System._codebase = opener.System._codebase;
else if ("未定義"!=typeof dialogArguments && dialogArguments.System)
System._codebase = dialogArguments.System._codebase;
}
catch(ex){}
System.MISSING_ARGUMENT="引数がありません";
System.ARGUMENT_PARSE_ERROR="引数を解析できません";
System.NOT_SUPPORTED_XMLHTTP="お使いのブラウザは XMLHttp をサポートしていません";
System.FILE_NOT_FOUND="ファイルが見つかりません";
System.MISCODING="ファイルのエンコーディングが ANSI または UTF-8 ではない可能性があります";
System.NAMESPACE_ERROR="標準以外の名前空間";
System.hashCounter=0;
System.currentVersion="20060811";
var t=document.getElementsByTagName("SCRIPT");
t=(System.scriptElement=t[t.length-1]).src.replace(/\/g, "/");
System.incorporate=function(d,s){for(var i in s)d[i]=s[i];return d;};
System.path=(t.lastIndexOf("/")System.getUniqueId=function(){return "mz_" (System.hashCounter ).toString(36);};
System.toHashCode=function(e)
{
if("未定義"!=typeof e.hashCode) return e.hashCode;
return e.hashCode=System.getUniqueId();
};
System.supportsXmlHttp=function()
{
return "object"==typeof(System._xmlHttp||(System._xmlHttp=new XMLHttpRequest()));
};
System._getPrototype=function(namespace, argu)
{
if("unknown"==typeof System._prototypes[namespace])return new System();
for(var a=[], i=0; i
};
System.ie=navigator.userAgent.indexOf("MSIE")>0 && !window.opera;
System.ns=navigator.vendor=="Netscape";
System._alert=function(msg){if(System.debug)alert(msg);};
System._parseResponseText=function(s)
{
if (null==s||"uFFFD"==s.charAt(0)){System._alert(System.MISCODING);return " ";}
if ("xef"==s.charAt(0))s=s.substr(3); //Firefox の場合
return s.replace(/(^|n)s*// s*((Using|Import|Include)(("|'))/g,"$1$2");
};
if(window.ActiveXObject &&(System.ie || !window.XMLHttpRequest))
{
window.XMLHttpRequest = function()
{
var msxmls =['MSXML3','MSXML2','Microsoft']、例;
for(var i=0;i
System._xmlHttp="mz"; throw new Error(System.NOT_SUPPORTED_XMLHTTP);
}
}
System.load = function(namespace, path)
{
試してみてください
{
if(System.supportsXmlHttp()){path=System._mapPath(namespace, path);
var x=System._xmlHttp; x.open("GET",path,false); x.send(null);
if (x.readyState==4)
{
if(x.status==0||/^file:/i.test(path))
return System._parseResponseText(x .responseText);
else if(x.status==200)return System._parseResponseText(x.responseText);
else if(x.status==404)System._alert(namespace "n" System.FILE_NOT_FOUND);
else throw new Error(x.status ": " x.statusText);}
} else System._alert(System.NOT_SUPPORTED_XMLHTTP);
}
catch(ex){System._alert(namespace "n" ex.message);}return "";
};
System._eval = function(namespace, path)
{
//alert("System._eval("" namespace "")=rn" System._codebase[namespace]);
try{if(window.execScript)window.execScript(System._codebase[namespace]);else
{
var script=document.createElement("SCRIPT");script.type="text/ JavaScript";
script.innerHTML="eval(System._codebase['" namespace "']);";
document.getElementsByTagName("HEAD")[0].appendChild(script);
setTimeout(function(){script.parentNode.removeChild(script)},99);
}}catch(ex){System._alert("読み込み時の構文エラー" 名前空間);}
System._existences[名前空間]=System._mapPath(名前空間, パス);
};
System._exist = function(namespace, path)
{
if("unknown"==typeof System._existences[namespace]) return false;
return System._existences[namespace]==System._mapPath(namespace,path);
};
System._mapPath = function(namespace, path)
{
if("string"==typeof path && path.length>3)return path.toLowerCase();
var p=(System.path "/" namespace.replace(/./g,"/") ".js").toLowerCase();
return p (("未定義"==パスの種類||パス) ? "" : "?t=" Math.random());
};
window.Using = function(namespace, path, rename)
{
if(System._exist(namespace, path)){
var s=window[namespace.substr(namespace) .lastIndexOf(".") 1)];
if(s!=System._prototypes[namespace])s=System._prototypes[namespace];return}
var code=namespace "."; if(!/((^|.)[w$] ) $/.test(namespace))
throw new Error(namespace System.NAMESPACE_ERROR);
for(var i=code.indexOf("."); i>-1; i=code.indexOf(".", i 1)){
var e= code.substring(0,i )、s=(e.indexOf(".")==-1)? "ウィンドウ["" e ""]":e;
if(e&&"unknown"==typeof(s)){
eval(s "=function(){return System._getPrototype("" e "", arguments)}");}}
if("未定義"==パスの種類&&"文字列"==System._codebase[名前空間]の種類)
{
System._eval(名前空間, パス);}else{if(code=System.load (namespace,path)){
e = "$" System.getUniqueId() "__id" new Date().getTime() "$";
s = "関数 " e "(){rn" コード ";rnSystem._prototypes['";
code=namespace.substr(namespace.lastIndexOf(".") 1);
s = namespace "']=window['" (rename||code) "']=" code ";rn}" e "();";
System._codebase[namespace]=s;s="";System._eval(namespace, path);}
}
};
window.Import=function(namespace,path,rename){Using(namespace,path,rename)};
window.Instance=function(hashCode){return System._instances[hashCode]};
window.Include=function(namespace, path)
{
if(System._exist(namespace, path)) return;
var code;if(!/((^|.)[w$] ) $/.test(namespace))
throw new Error(namespace System.NAMESPACE_ERROR);
if("unknown"==typeof path&&"string"==typeof(System._codebase[namespace]))
{
System._eval(namespace, path);}else if(System.supportsXmlHttp()){
if(code=System.load(namespace, path)){System._codebase[namespace]=code;
System._eval(namespace, path);}}else{
var script=document.createElement("SCRIPT");script.type="text/javascript";
script.src=System._existences[namespace]=System._mapPath(namespace,path);
document.getElementsByTagName("HEAD")[0].appendChild(script);
setTimeout(function(){script.parentNode.removeChild(script)},99);
}
};
関数.READ=1;関数.WRITE=2;関数.READ_WRITE=3;
Function.prototype.addProperty=function(name,initValue,r_w)
{
var capital=name.charAt(0).toUpperCase() name.substr(1);
r_w=r_w||関数.READ_WRITE; name="_" 名前; var p=this.prototype;
if("未定義"!=typeof initValue) p[name]=initValue;
if(r_w&Function.READ) p["get" capital]=function(){return this[name];};
if(r_w&Function.WRITE) p["set" capital]=function(v){this[name]=v;};
};
Function.prototype.Extends=function(SuperClass,ClassName)
{
var op=this.prototype, i, p=this.prototype=new SuperClass();
if(クラス名)p._className=クラス名; for(i in op)p[i]=op[i];
if(p.hashCode)delete System._instances[p.hashCode];return p;
};
System._instances={};
System._prototypes=
{
"System":System,
"System.Object":System,
"System.Event":System.Event
};
System._existences=
{
"System":System._mapPath("System"),
"System.Event":System._mapPath("System.Event"),
"System.Object":System._mapPath("System.Object")
};
t=System.Extends(Object, "システム"); System.Object = システム;
t.decontrol=function(){var t;if(t=this.hashCode)delete System._instances[t]};
t.addEventListeners=function(type, handle)
{
if("function"!=typeof handle)
throw new Error(この " addEventListener: " ハンドル "は関数ではありません") ;
if(!this._listeners) this._listeners={};
var id=System.toHashCode(ハンドル), t=this._listeners;
if("オブジェクト"!=typeof t[タイプ]) t[タイプ]={}; t[タイプ][id]=ハンドル;
};
t.removeEventListener=function(type, handle)
{
if(!this._listeners)this._listeners={}; var t=this._listeners;
if(!t[type]) return; var id=System.toHashCode(ハンドル);
if( t[type][id])delete t[type][id];if(t[type])delete t[type];
};
t.dispatchEvent=function(evt)
{
if(!this._listeners)this._listeners={};
var i, t =this._listeners, p =evt.type;
evt.target=evt.srcElement=this; if(this[p])this[p](evt);
if("object"==typeof t[p]) for(i in t[p]) t[p][i].call(this,evt);
evt.targetを削除します。 delete evt.srcElement;return evt.returnValue;
};
t.setHashCode=function()
{
System._instances[(this.hashCode=System.getUniqueId())]=this;
};
t.getHashCode=function()
{
if(!this.hashCode)this.setHashCode(); this.hashCode を返します。
};
t.toString=function(){return "[object " (this._className||"Object") "]";};
System.Event=function(type){this.type=type;};
t=System.Event.Extends(System, "System.Event");
t.returnValue=true;
t.cancelBubble=false;
t.target=t.srcElement=null;
t.stopPropagation=function(){this.cancelBubble=true;};
t.preventDefault =function(){this.returnValue=false;};
if(System.ie && !System.debug) Include("System.Plugins.IE"); //IE UserData
if(window.opera) Include("System.Plugins.Opera"); //Opera サポート
Include("System.Global");mztreeview2.rar

ホットAIツール

Undresser.AI Undress
リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover
写真から衣服を削除するオンライン AI ツール。

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

Video Face Swap
完全無料の AI 顔交換ツールを使用して、あらゆるビデオの顔を簡単に交換できます。

人気の記事

ホットツール

メモ帳++7.3.1
使いやすく無料のコードエディター

SublimeText3 中国語版
中国語版、とても使いやすい

ゼンドスタジオ 13.0.1
強力な PHP 統合開発環境

ドリームウィーバー CS6
ビジュアル Web 開発ツール

SublimeText3 Mac版
神レベルのコード編集ソフト(SublimeText3)

ホットトピック









JS と Baidu Map を使用してマップ パン機能を実装する方法 Baidu Map は広く使用されている地図サービス プラットフォームで、Web 開発で地理情報、位置情報、その他の機能を表示するためによく使用されます。この記事では、JS と Baidu Map API を使用してマップ パン機能を実装する方法と、具体的なコード例を紹介します。 1. 準備 Baidu Map API を使用する前に、Baidu Map Open Platform (http://lbsyun.baidu.com/) で開発者アカウントを申請し、アプリケーションを作成する必要があります。作成完了

顔の検出および認識テクノロジーは、すでに比較的成熟しており、広く使用されているテクノロジーです。現在、最も広く使用されているインターネット アプリケーション言語は JS ですが、Web フロントエンドでの顔検出と認識の実装には、バックエンドの顔認識と比較して利点と欠点があります。利点としては、ネットワーク インタラクションの削減とリアルタイム認識により、ユーザーの待ち時間が大幅に短縮され、ユーザー エクスペリエンスが向上することが挙げられます。欠点としては、モデル サイズによって制限されるため、精度も制限されることが挙げられます。 js を使用して Web 上に顔検出を実装するにはどうすればよいですか? Web 上で顔認識を実装するには、JavaScript、HTML、CSS、WebRTC など、関連するプログラミング言語とテクノロジに精通している必要があります。同時に、関連するコンピューター ビジョンと人工知能テクノロジーを習得する必要もあります。 Web 側の設計により、次の点に注意してください。

PHP と JS を使用して株のローソク足チャートを作成する方法。株のローソク足チャートは、株式市場で一般的なテクニカル分析グラフィックです。始値、終値、最高値、株価などのデータを描画することで、投資家が株式をより直観的に理解するのに役立ちます。株価の最低価格、価格変動。この記事では、PHP と JS を使用して株価のローソク足チャートを作成する方法を、具体的なコード例とともに説明します。 1. 準備 開始する前に、次の環境を準備する必要があります。 1. PHP を実行するサーバー 2. HTML5 および Canvas をサポートするブラウザー 3

株式分析に必須のツール: PHP および JS でローソク足チャートを描画する手順を学びます。特定のコード例が必要です。インターネットとテクノロジーの急速な発展に伴い、株式取引は多くの投資家にとって重要な方法の 1 つになりました。株価分析は投資家の意思決定の重要な部分であり、ローソク足チャートはテクニカル分析で広く使用されています。 PHP と JS を使用してローソク足チャートを描画する方法を学ぶと、投資家がより適切な意思決定を行うのに役立つ、より直感的な情報が得られます。ローソク足チャートとは、株価をローソク足の形で表示するテクニカルチャートです。株価を示しています

JS と Baidu Maps を使用してマップ クリック イベント処理を実装する方法の概要: Web 開発では、地理的位置と地理情報を表示するためにマップ関数を使用することが必要になることがよくあります。マップ上のクリック イベント処理は、マップ機能の一般的に使用される重要な部分です。この記事では、JS と Baidu Map API を使用して地図のクリック イベント処理機能を実装する方法と、具体的なコード例を紹介します。手順: Baidu Map の API ファイルをインポートします。まず、Baidu Map API のファイルを HTML ファイルにインポートします。これは、次のコードによって実現できます。

JS と Baidu Maps を使用してマップ ヒート マップ機能を実装する方法 はじめに: インターネットとモバイル デバイスの急速な発展に伴い、マップは一般的なアプリケーション シナリオになりました。視覚的な表示方法として、ヒート マップはデータの分布をより直観的に理解するのに役立ちます。この記事では、JS と Baidu Map API を使用してマップ ヒート マップ機能を実装する方法と、具体的なコード例を紹介します。準備作業: 開始する前に、次の項目を準備する必要があります: Baidu 開発者アカウント、アプリケーションの作成、対応する AP の取得

インターネット金融の急速な発展に伴い、株式投資を選択する人がますます増えています。株式取引では、ローソク足チャートは一般的に使用されるテクニカル分析手法であり、株価の変化傾向を示し、投資家がより正確な意思決定を行うのに役立ちます。この記事では、PHP と JS の開発スキルを紹介し、株価ローソク足チャートの描画方法を読者に理解してもらい、具体的なコード例を示します。 1. 株のローソク足チャートを理解する 株のローソク足チャートの描き方を紹介する前に、まずローソク足チャートとは何かを理解する必要があります。ローソク足チャートは日本人が開発した

js と vue の関係: 1. Web 開発の基礎としての JS、2. フロントエンド フレームワークとしての Vue.js の台頭、3. JS と Vue の補完関係、4. JS と Vue の実用化ビュー。
