- Jul 04 Wed 2007 11:36
-
include js檔
被include的js檔內容不能有Tag,如,之類 Example 2: 被include的js檔內容不能有Tag,如,之類 Example 2: 若useAjax.js有引用prototype.js的內容,include需有先後順序 Example 3:Use Ajax var url = \"http://localhost:8888/axis/EchoHeader?wsdl\"; new Ajax.Request(url, { method: 'get',onComplete: handleAxis}); onComplete所指的handleAxis是函數指標,待Ajax處理完後回給handleAxis 故要在Java Script宣告handleAxis處理傳回的結果: function handleAxis(httpObj) { // httpObje是handleAxis區域變數,由prototype.js所呼叫 var returnText = httpObj.responseText; // 傳回的結果 // process .... } ...", "image": [ { "@type": "ImageObject", "url": "https://s3.1px.tw/blog/common/avatar/blog_cover_dark.jpg" } ], "author": { "@id": "https://jemmywalker.pixnet.net#person" }, "publisher": { "@type": "Organization", "name": "PIXNET", "url": "https://www.pixnet.net", "logo": { "@type": "ImageObject", "url": "https://static.1px.tw/pixnet-next/_next/static/media/pixnet-logo.692e9b3e.svg" } }, "datePublished": "2007-07-04T11:36:38+08:00", "dateModified": "2015-07-18T04:07:33+08:00", "inLanguage": "zh-TW", "articleSection": "Java Script", "keywords": [], "isPartOf": { "@type": "Blog", "@id": "https://jemmywalker.pixnet.net/blog#blog" } }
請先 登入 以發表留言。