Time of Update: 2016-09-14
標籤:在ExtJS中執行個體化類可以使用全類名或者別名以及備用名 // alias 別名 var window = Ext.create(‘widget.window‘, { width: 600, height: 800, ... }); // alternate name 備用名 var window = Ext.create(‘Ext.Window‘, { width: 600, height: 800, ... }); // full
Time of Update: 2016-09-14
標籤:一、ADO.NET 融合物件導向的查詢語句1.只查詢一條資料//資料訪問中的select方法public stu select(string xuehao) { stu s = null; cmd.CommandText = "select *from stu where [email protected]"; cmd.Parameters.Clear(); cmd.Parameters.Add("
Time of Update: 2016-09-14
標籤:hibernate.cfg.xml的一些相關配置 <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"><hibernate-configuration> <!--
Time of Update: 2016-09-14
標籤:瞭解js的都知道, 有個typeof 用來判斷各種資料類型,有兩種寫法:typeof xxx ,typeof(xxx) 如下執行個體: typeof 2
Time of Update: 2016-09-14
標籤:session跨頁面後session消失?session的儲存要注意的點:以檔案的形式儲存在伺服器端。生命週期有限,根據不同的伺服器類型確定。儲存內容為序列化字串session檔案儲存體的內容格式如下: 從圖片中我們可以讀出一些session資訊:例如 存在一個session為error,其值為空白;還存在一個session為:step,其值為0,等等資訊。現在我們已經知道session的原理機制,那麼,要使session可以跨頁面調取,必須滿足一下幾個條件:1.開啟session
Time of Update: 2016-09-14
標籤:一、多頁面分離資源引用,按需引用JS和css 我們前面實現了以下功能:1、建立了一個login模版(用到htmlWebpackPlugin)。2、分別把main.js和login.js、reg.js分開寫。3、學習了css載入器。我們通過webpack可以打包js檔案、自動注入js和CSS引用。 那麼我們要載入多頁面如何操作呢?現在我們就在/src/tpl
Time of Update: 2016-09-14
標籤:min-height:設定元素的最小高度,元素可以比指定值高,但不能比指定值矮。舉例:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style> div{ position: fixed; } div.
Time of Update: 2016-09-14
標籤:Hibernate除了處理查詢結果集中的對象之外,還可以將結果集中的結果當做行和列集來使用,這與通過JDBC執行select查詢獲得的資料的使用方式相似。因此,Hibernate也支援屬性、統計函數和Group By等查詢。要 想使用Hibernate的投影統計功能,首先要從org.hibernate.criterion.Projections工廠類獲得
Time of Update: 2016-09-14
標籤: 在 Linux學習中,包管理器非常重要,對於新手來說,知道如何使用多種包管理器可以讓你像一個高手一樣活得很舒適,從在倉庫下載軟體、安裝軟體,到更新軟體、處賴和刪除軟體是非常重要的,這也是Linux系統管理的一個重要部分。 成為一個Linux 高手的一個標誌是瞭解主要的 Linux發行版如何處理包,在這篇文章中,我們應該看一些你在 Linux上能找到的最佳的包管理器,
Time of Update: 2016-09-14
標籤:定義函數有兩種方式:函式宣告 函數運算式1.函式宣告是這樣的:function box(arg0,arg1,arg2){ //函數體}關於函式宣告有一個重要的特徵:函式宣告提升,也就是說執行代碼之前會將先讀取函式宣告,也就說可以先調用,再聲明。sayHi(arg0,arg1,arg2);function sayHi(arg0,arg1,arg2){ //函數體} 2.函數運算式是這樣的:var box =
Time of Update: 2016-09-14
標籤:What is a path? Why is this something developers should care about?A path is simply the location of a file or directory within a file system,1 though it’s not exactly an address. A path is both the location and how to get
Time of Update: 2016-09-14
標籤:需要對元素的css屬性cursor進行設定。cursor可能的值:default 預設(通常是一個箭頭)auto 預設。瀏覽器設定的游標crosshair 十字線形狀。pointer 小手形狀。<button style="curosr:pointer">測試按鈕</button>move 此游標指示某對象可被移動e-resize
Time of Update: 2016-09-14
標籤:web播放一般都是flv,html播放器,支援的格式較少像flv,mp4,f4v,m3u8。 尋找了幾款像VideoJS,Plyr ,ckplayer ,最終選擇了ckplayer,配置如下:<div id="a1"></div><script type="text/javascript" src="/ckplayer/ckplayer.js" charset="utf-8"></script><script
Time of Update: 2016-09-14
標籤:選取器:basic $(‘button‘) html 標籤 $(‘#test‘) 標籤ID $(‘.test‘) 標籤的class $(‘.test,#test,h1‘) 多選用逗號隔開 $(‘*‘) 全選等級選中 $(‘div code‘) 選擇所有在div下面的所有code元素,不考慮有多少層 $(‘li>ul‘) >意味著直接子項目 $(‘strong+em‘)
Time of Update: 2016-09-14
標籤:css代碼:/*邊框*/.shadow_border{border: 1px solid #000;padding: 60px; width:100px;-webkit-border-radius: 8px;-moz-border-radius: 8px;border-radius: 8px;-webkit-box-shadow: #666 0px 0px 10px;-moz-box-shadow: #666 0px 0px 10px;box-shadow: #666 0px 0px 10
Time of Update: 2016-09-14
標籤:本課:div+css實現首頁效果:開發工具:xampp + phpstorm筆記目的:僅做記錄使用,方便日後查看代碼目錄結構:index.php:<?php define("ROOT_WEB",true);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
Time of Update: 2016-09-14
標籤: 文法:<% 多行java代碼 %> 在一個JSP頁面中可以有多個指令碼片斷,在兩個或多個指令碼片斷之間可以嵌入文本、HTML標記和其他JSP元素。 舉例:<% int x = 10; out.println(x);%><p>這是JSP頁面文本</p><% int y = 20; out.println(y+””+x);
Time of Update: 2016-09-14
標籤:var name=‘提示‘; //網頁名稱,可為空白;var iWidth=550; //快顯視窗的寬度;var iHeight=250; //快顯視窗的高度;var iTop = (window.screen.availHeight - iHeight) / 2; //獲得視窗的垂直位置var iLeft =
Time of Update: 2016-09-14
標籤:function BrowserInfo() { var ua = navigator.userAgent.toLowerCase(); var Sys = {}; var s; (s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] : (s = ua .match(/Trident\/(\d+)/i)) ? Sys.ie11 = s[1]
Time of Update: 2016-09-14
標籤:開發過程中,AJAX的應用應該說非常頻繁,當然,jQuery的AJAX函數已經非常好用,但是小編還是稍微整理下,方便不同需求下,可以簡化輸入參數,下面是執行個體代碼:$(function(){ /** * ajax封裝 * url 發送請求的地址 * data 發送到伺服器的資料,數組儲存,如:{"date": new Date().getTime(), "state": 1} * async 預設值: