Time of Update: 2013-12-01
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta
Time of Update: 2013-12-01
[html] <p><html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>bar</title> <script
Time of Update: 2013-12-01
js代碼:[javascript] <script type="text/javascript"> function NumOnly(e) { var
Time of Update: 2013-12-01
哎,前段開發真心不容易。。。。弄了1個小時,找找了各種素材,終於,字型選色板準系統弄好了,UI設計技能亟待提升。先看效果:功能介紹:點擊顏色按鈕,彈出選色板,選中一個顏色,儲存設定,隱藏選色板。。。實現源碼如下:[html] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Time of Update: 2013-12-01
參考樣本:CRUD之:行編輯 一:建立儲存格編輯器<div id="datagrid1" class="mini-datagrid"
Time of Update: 2013-12-01
Javascript檔案操作 (IE)一、功能實現核心:FileSystemObject 對象 要在javascript中實現檔案操作功能,主要就是依靠FileSystemobject對象。二、FileSystemObject編程 使用FileSystemObject 對象進行編程很簡單,一般要經過如下的步驟: 建立FileSystemObject對象、應用相關方法、訪問對象相關屬性
Time of Update: 2013-12-01
//比較數組是否相同 modeler.compArray=function(array1,array2) { if((array1&&typeof array1 ==="object"&&array1.constructor===Array)&&(array2&&typeof array2
Time of Update: 2013-12-01
做了下修改,剛才發的時候沒有建立store,model在上一個版本的基礎上添加了一點功能,點擊左邊的Button按鈕可以在右邊添加新的tab,在tab加了頁面,和grid,複習了一下以前學的東西看代碼:index.html,app.js沒有修改,這應該就是MVC的優點吧,這裡只貼出修改的代碼:在左邊的導覽列添加了兩個按鈕:Accordion.js:[javascript] Ext.define('HT.view.Accordion',{  
Time of Update: 2013-12-01
[plain] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> &
Time of Update: 2013-12-01
一:建立介面布局<!--Layout--><div id="layout1" class="mini-layout" style="width:100%;height:100%;"> <div class="header" region="north" height="70"
Time of Update: 2013-12-01
JQuery的核心的一些方法$("Element").length; ‘元素的個數,是個屬性$("Element").size(); ’也是元素的個數,不過帶括弧是個方法$("Element").get(); ‘某個元素在頁面中的集合,以數組的形式儲存$("Element").get(index);
Time of Update: 2013-12-01
這幾天開發的時候遇到了小問題,JSP頁面傳到背景表單參數是亂碼。 我的JSP頁面的編碼格式是utf-8,同時設定了request.setCharacterEncoding(“utf-8”),最後發現問題所在,同事在struts檔案裡配了個常量:<constant name="struts.i18n.encoding" value="GBK" />。網上查了這個常量的作用後,
Time of Update: 2013-12-01
<html><head><script type="text/javascript">function onclick1(){alert("Click button");}</script></head><body ><input type="button" onClick="onclick1()"
Time of Update: 2013-12-01
趁有假期,用js實現了一套js的詞法分析器、語法分析器、編譯器、解譯器,以及一個很簡單的ide,自己實現了函數和閉包。另外寫了中文化的詞法分析器語法分析器,實現了一個我比較滿意的中文編程語言。------------------------------中文編程語言規格(實例方式):+ - * / ^ & | ~ = 等等 可考慮:== -> =? 如 1 =? 2 比較表達式一例改為 >? <? &
Time of Update: 2013-12-01
如下, 完整代碼[html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html
Time of Update: 2013-12-01
基本概念介紹策略模式支援你在運行時選擇演算法。代碼的用戶端可以使用同一個介面來工作。但是它卻根據客戶正在試圖執行任務的上下文,從多個演算法中選擇用於處理特定任務的演算法。使用原則模式的其中一個例子是解決表單驗證問題。可以建立一個具有validate()方法的驗證器(validator)對象。無論表單的具體類型是什麼,該方法都將會被調用,並且總是返回相同的結果,一個未經驗證的資料列表以及任意的錯誤訊息。但是根據具體的表單形式及待驗證的資料,驗證器的用戶端可以選擇不同類型的檢查方法,驗證器將選擇最佳
Time of Update: 2013-12-01
參考樣本:ListBox:清單控制項建立ListBox<div id="listbox1" class="mini-listbox" style="width:150px;height:100px;" textField="text" valueField="id"
Time of Update: 2013-12-01
1. demo1.jsp<%@ page language="java" pageEncoding="UTF-8"%><html> <head> <title>demo1</title> <script type="text/javascript"
Time of Update: 2013-12-01
Mac在Mac下,如果你喜歡用homebrew,那麼只用一行就可以裝好:brew install node否則,只能考慮手工安裝了,步驟如下:安裝Xcode安裝git運行下面的命令列編譯node.jsgit clone git://github.com/joyent/node.gitcd node./configuremakesudo make installUbuntu安裝依賴包sudo apt-get install g++ curl libssl-dev
Time of Update: 2013-12-01
<script type="text/javascript"> $(function () { //文字框樣式切換 $(