Time of Update: 2016-10-15
標籤:輸入字串的格式是 a=1&b=2&c=3$.par2Json = function (string, overwrite) { var obj = {}, pairs = string.split(‘&‘), d = decodeURIComponent, name, value; $.each(pairs, function (i, pair) { pair = pair.split(‘=‘); name =
Time of Update: 2016-10-15
標籤:http://www.cnblogs.com/whitewolf/p/angular-module-declare-and-get.html看了上面這篇文章,自己讀了一下代碼,以下是個人理解,如有請指正/** * Created by Administrator on 2016/10/15. */function setupModuleLoader(window) { //...省略部分代碼
Time of Update: 2016-10-15
標籤:1.linux伺服器上安裝phpunitwget https://phar.phpunit.de/phpunit.pharchmod +x phpunit.pharsudo mv phpunit.phar /usr/local/bin/phpunit建立phpunit短命令phpunit --version[[email protected] phpunit_test]# phpunit --versionPHPUnit 5.6.1 by Sebastian Bergmann
Time of Update: 2016-10-15
標籤:1.使用浮動時出現的情況:(1)使塊元素在一行顯示(2)使內嵌元素支援寬高(3)不設定寬高的時候寬度由內容撐開(4)換行不被解析(故使用行內元素的時候清除間隙的方法可以使用浮動)(5)元素添加浮動,會脫離文檔流,按照指定的一個方向移動,直到碰到父級的邊框或者另外一個浮動元素停止(文檔流是文檔中可現實對象在排列時所佔用的位置)2.清除浮動的方法:(1)給父級元素也加浮動(這種情況當父級元素margin:0
Time of Update: 2016-10-15
標籤:下載最新版架構後,解壓縮到web目錄下面,可以看到初始的目錄結構如下:project 應用部署目錄├─application 應用目錄(可設定)│ ├─common 公用模組目錄(可更改)│ ├─index 模組目錄(可更改)│ │ ├─config.php 模組設定檔│ │ ├─common.php 模組函數檔案│ │ ├─controller 控制器目錄│ │ ├─
Time of Update: 2016-10-15
標籤:jquery cookie外掛程式 切換背景顏色<!DOCTYPE html><html><head><meta charset="UTF-8"><title>更換背景顏色</title><style type="text/css">#bg{width: 90%;height: 500px;background: rgba(0,0,0,.2);position: fixed;bottom:
Time of Update: 2016-10-15
標籤:1、擷取後代元素 1)children() 不傳參數:得到結果集內所有元素的子項目 傳入選取器:得到結果集內元素的匹配傳入選取器的子項目 2)find() 傳入選取器:得到匹配選取器的後代元素 傳入jQuery、HTMLElement、HTMLElement[]
Time of Update: 2016-10-15
標籤:編輯選擇結果操作 執行個體 效果 備忘添加添加選取器$("p").add(".a")添加類名為a的選取器並不影響源結果集 $("p").add( "label", $(".class") );添加類包含名為class的所有label元素的選取器添加html對象$("p").add(
Time of Update: 2016-10-15
標籤:onmouseover:滑鼠放上去時觸發事件onmouseout:滑鼠從上面移開時觸發事件onclick:按一下滑鼠事件需求:點擊頁面上一個按鈕,給body換背景圖片<!DOCTYPE html><html> <head> <meta charset="UTF-8"> </head> <body> <input type="button" id="bt" value=
Time of Update: 2016-10-15
標籤:1.首先把原來的對應檔刪掉,給實體類添加註解:@Entity //聲明當前類為hibernate映射到資料庫中的實體類@Table(name="news") //聲明table的名稱public class News { @Id //聲明此列為主鍵,作為映射對象的標識符 /** * @GeneratedValue註解來定義建置原則 * GenerationType.TABLES
Time of Update: 2016-10-15
標籤:一、php環境的搭建在編寫php前,先搭建php環境,我選擇了一站式安裝軟體WampServer,WampServer的:http://www.wampserver.com/WampServer的最新版本2.5內建:Apache 2.4.9PHP 5.5.12MySQL
Time of Update: 2016-10-15
標籤:前言 俗話說三天不學習,趕不上劉少奇。Asp.net Core更新這麼長時間一直觀望,周末帝都小雨,宅在家看了下Core Web App,順便搭建了個HelloWorld環境來嘗嘗鮮,第一次看到.Net Web運行在Linux上還是有點小激動(只可惜微軟走這一步路走的太晚,要不然屌絲們也不會每每遇見Java VS .Net就想辯論個你死我活)。 開發環境和部署環境 Windows 10、VS2015
Time of Update: 2016-10-15
標籤:O.REILLY@key-> vertical-align: top;我喜歡折角,我是斷背山?我真他媽折角了。我槽key->background-image: linear(to bottom right, gray 0, gray 90%, transparent 91%, transparent
Time of Update: 2016-10-15
標籤:總是遇到h5新標籤的筆試題目,就查閱了資料來總結一下:1.form相關:(1)form屬性:在HTML5中表單元素可放在表單之外,通過給該元素添加form屬性來指向目標表單(form屬性值設為目標表單id)即可。(2)formaction屬性:HTML5給提交按鈕(如button、submit、image等)增加了formaction屬性,以便提交到不同的伺服器位址。<input formaction="new.html" type="submit"
Time of Update: 2016-10-15
標籤:koahubjs發布0.09
Time of Update: 2016-10-15
標籤:遇到網頁上有精美圖片或者精彩文字想儲存時,通常大家都是選中目標後按滑鼠右鍵,在快顯功能表中選擇“圖片另存新檔”或“複製”來達到我們的目的。但是,目前有許多網頁都屏蔽了滑鼠右鍵,那麼用js如何?禁止滑鼠右鍵的功能呢?1.與禁止滑鼠右鍵相關的JS說明 1 <script type="text/javascript">2 document.oncontextmenu=new
Time of Update: 2016-10-15
標籤:ExtJS中除了提供豐富的組件外,我們還可以擴充他的組件。在這裡,我們將在Date日期組件上添加一個【清除】按鈕,用於此組件已選中值的清除。目錄1. Date組件介紹2. 主要代碼說明3.
Time of Update: 2016-10-15
標籤:<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title></head><body> <button id="btn1">調用第一種</button> <button id="bnt2">調用第二種</button> &
Time of Update: 2016-10-15
標籤:js定時器的使用(執行個體講解) 字型:[增加 減小] 類型:轉載 時間:2014-01-06
Time of Update: 2016-10-15
標籤:function down(t){ var req = createRequest(); //建立request req.open("GET","selectWordDate?date_time="+t); //發送請求 req.onreadystatechange =