Time of Update: 2015-02-05
標籤:最近在看jQuery的API文檔,在使用到jQuery的ajax時,如果指定了dataType為json,老是不執行success回調,而是執行了error回呼函數。 附上代碼如下: JScript code: 複製代碼 代碼如下: $.ajax({ type: "post", url: "jsp/loginManager.jsp", data: "name=" + $(‘#rname‘).attr(‘value‘) + "&pwd=" + $(‘#pwd‘).attr(
Time of Update: 2015-02-05
標籤:function serializeUrl(str){ var param = {}, hash = {}, anchor; var url = str || location.href; var arr = /([^?]*)([^#]*)(.*)/.exec(url); var ar1 = /(.*:)?(?:\/?\/?)([\.\w]*)(:\d*)?(.*?)([^\/]*)$/.exec(arr[1]); var ar2 =
Time of Update: 2015-02-05
標籤: 近期在開發小組在研究:BS項目中是利用‘MVC架構’還是繼續沿用‘三層’的問題。 由於曾經的.NET項目大多數都是利用三層開發的,所以大多數人都可以對三層進行熟練地運用。而項目的開始我們也曾聽說過MVC的概念,可是由於沒有項目經驗的原因,所以總是停留在理論層次的比較。
Time of Update: 2015-02-05
標籤:利用js在table中添加tbody塊,方便整塊的添加和刪除,以下為添加。<table width="400" border="1" cellspacing="0" cellpadding="0" id="table1"></table><script language="javascript">var value = "內容";var value1 = "<a href=‘*‘>link</a>";var row = 5; //
Time of Update: 2015-02-05
標籤:參考:http://www.it0355.com/a/201207/31/a9275.htm在安裝Hmailserver前先安裝Apache、php、mysql,如果你想懶點直接到http://www.phpnow.org下載phpnow,安裝簡單快捷!下載Hmail:http://www.hmailserver.com/安裝Hmail:使用Mysql繼續點擊下一步,直到出現數據庫設置步驟創建一個新的郵件服務器數據庫使用MySQL由於是在本地測試,所以填localhost,數據庫名稱自己隨
Time of Update: 2015-02-05
標籤: 在網上有很多mvc程式啟動,調用之間的關係與順序。而且還有很多很不錯的網站。推薦一個 http://www.cnblogs.com/QLeelulu/archive/2008/09/30/1302462.html。但是那些都說的比較理論,對於一些第一天開始學mvc的朋友來說,可能看起來感覺好像懂了很多,但是用起來的時候就感覺有問題,還經常遇到http
Time of Update: 2015-02-05
標籤:Ajax快速入門2015-1-28????早 8:001.如何建立XHR對象答:按標準 new XMLHttpRequest()即可以得到????考慮低版本IE 可以使用new window.ActiveXObject((‘Microsoft.XMLHTTP‘));????相容性建立:????function createXHR(){????????var xhr = null;????????if(window.XMLHttpRequest){????????????xhr =
Time of Update: 2015-02-05
標籤:public function role() { $ci= &get_instance();//ci控制器超級對象,就是把所有執行的方法列印出來 $directory = substr($ci->router->fetch_directory(),0,-1); //分組目錄 $controller = $ci->router->fetch_class(); //當前控制器
Time of Update: 2015-02-05
標籤:問題:如題,就是說alert後出現一個對話方塊,我沒有點關閉,其他js檔案或html會被載入嗎,我遇到一個問題就是在頁面載入時調用一個div的click事件,卻沒有被執行,但是在呼叫事件前面加上alert(‘xx‘);運行後手動關閉提示框click事件就調用成功,為什麼,也寫了個sleep函數,但不論sleep多久click事件也不會被執行,那我要怎樣才能自動調用這個click。 解決方案:將程式碼封裝含在onload中,進行(window.onload())載入。原理:&nbs
Time of Update: 2015-02-05
標籤:一、總括 本文用於解釋Angular初始化的過程,以及如何在你有需要的時候對Angular進行手工初始化。 二、Angular <script> 標籤 本例用於展示如何通過推薦的路徑整合Angular,實現自動初始化。
Time of Update: 2015-02-05
標籤:隱性url hrl The following code in the default document will hide the URL to where the request is being redirected: htmltitleWelcome to a wonderful site/titleframeset cols="100%,*"
Time of Update: 2015-02-05
標籤:url 隱性url The following code in the default document will hide the URL to where the request is being redirected: <html><title>Welcome to my site</title><frameset cols=
Time of Update: 2015-02-05
標籤:function $.handleerror 、以及 $.httpdata報錯 jquery.form.js上傳出現$.handleError 、以及 $.httpData錯誤 原因: 首先,jquery1.4以後的版本不在支援這兩個方法。 解決方案: 添加(在jquery.form.js)中添加如下方法:$.httpData=function( xhr,
Time of Update: 2015-02-05
標籤:http https http與https區別 超文字傳輸通訊協定
Time of Update: 2015-02-05
標籤:hibernate helloworld 一:HelloWorld程式結構2:相關源碼3:console輸出Hibernate: insert into Student (name, age) values (?,
Time of Update: 2015-02-05
標籤:MyEclipse特性與Linux內部web瀏覽器的相容性問題Eclipse 3.3現在支援所有平台上的Mozilla瀏覽器(對Mozilla的遲滯無處不在),對於無處不在的Mozilla更多資訊:詳見bug#7923。對於MyEclipse的Linux使用者來說,這就意味著附帶的MyEclipse 6.0嵌入的Mozilla瀏覽器核心可以作為Eclipse平台的核心瀏覽器,隨著附帶的MyEclipse
Time of Update: 2015-02-05
標籤:execsource flume 我們直接看該Source的start方法吧public void start() { logger.info("Exec source starting with command:{}", command); executor = Executors.newSingleThreadExecutor(); runner = new
Time of Update: 2015-02-05
標籤:如:$sql = "insert into article (`channel_id`,`title`,`detail`,`pub_time`) values (‘{$cid}‘,‘{$title}‘,‘{$detail}‘,‘{$time}‘);";不加似乎也可以,加{}是什麼意思呢?還有欄位名
Time of Update: 2015-02-05
標籤:表單驗證 純css 偽類別選取器 ladies and 鄉親們,表單驗證你在做嗎?用戶端or伺服器端,javascript or jquery,動手寫 or 使用外掛程式,今天我們來探索下使用純css實現表單驗證,藉以學習css selectors level 4中的表單相關的偽類別選取器。案例欣賞 代碼我同樣放到了codepen,大家可以線上研究,或下載收藏。知識解析關鍵在於使用css
Time of Update: 2015-02-05
標籤:.net 開源項目 開發架構 開發工具 資料庫 前言: