Time of Update: 2015-05-21
JS-範圍劃分,js-域劃分和其他語言不通的是,js的範圍是按函數來劃分的;不像C 語言,java等進階語言,有嚴格的塊級範圍的區分,在java中for或者if都算是一個獨立的塊級範圍,但是在JavaScript中if、for 語句中的花括弧不是獨立的範圍。JavaScript 的範圍完全是由函數來決定的。比如if (true) { var name = 'zhangsan';}console.log(name); // 輸出
Time of Update: 2015-05-21
js 類似百度、google搜尋 jsp版本,jsjspjsp頁面<div id='form' > <img src="${images}/../logo001.jpg" width="175px" height="55px"></img> <input id="keyword" value="
Time of Update: 2015-05-21
Python List,pythonlist 首先強調一下: LIST在python中具有非常強大的功能。定義 定義很簡單:在python中,用方括弧表示一個list,[ ]特點 一:可以無限大,就是說list裡面所能容納的元素數量無限 二:list中的元素是任意類型的,可以是int,str,甚至還可以是list,乃至於是以後要學的dict等。而java中的數組和list比較相似,但是數組中的元素只能是一種類型
Time of Update: 2015-05-21
一個奇葩問題,jQuery的chzn-select查詢失效,jquerychzn-select
Time of Update: 2015-05-21
將參數傳到session中,參數傳到session$('.modify').live("click",function(){var user_id = $(this).attr("id");jcl.go("/updateMember?user_id="+user_id);});<input type="hidden" id="user_id" value="<
Time of Update: 2015-05-21
freemark文法,freemarkif 判斷:<#if n = 0>...<#elseif (my_resume.getPhotoName()?substring(0,7))!="http://">...<#else> ...</#if>String字串操作1.截取字串 ${str?substring(0,7)}2.判斷是否為空白,為空白時 給預設值
Time of Update: 2015-05-21
學習ASP.NET
Time of Update: 2015-05-21
ext 類似百度、google搜尋自動提示,extgoogle在組件上面用keyup事件來監聽<ext:panel width="210" layout="form" listeners="{afterlayout:onUIShow}" style="margin-left:10px">
Time of Update: 2015-05-21
JavaScript特效執行個體015-開啟視窗特殊效果,javascript015-執行個體015
Time of Update: 2015-05-21
JS實現鐘錶,js鐘錶<!DOCTYPE html><html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=640,user-scalable=no,target-densitydpi=device-dpi" />
Time of Update: 2015-05-21
淺談基於JavaScript的DDOS攻擊,javascriptddos
Time of Update: 2015-05-21
程式遠表白網,對Ta Say
Time of Update: 2015-05-21
newFCK函數,FCKEditor編輯器在輕開平台中的使用例子,newfckfckeditor 引入fckeditor編輯器入口檔案<chtml file="editors/fckeditor/fckeditor.htm" />如果會話中使用者ID(user_id)為空白(未登入),則臨時設一個ID,方便上傳檔案(圖片等)<chtml><if x="@{session:user_id}"> <session><we
Time of Update: 2015-05-21
【LeetCode】Word Search II 解題報告,leetcodeii【題目】Given a 2D board and a list of words from the dictionary, find all words in the board.Each word must be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those
Time of Update: 2015-05-21
Image擴充,如何將網狀圖片顯示在自己的程式中,因為圖片來源多種多樣,預設架構已經提供了好幾種圖片讀取方式,比如Image.FromFile,Image.FromHbitmap,Image.FromStream,但就是沒有提供Image.FromNet,所以這裡寫了個通用的擴充方法,可以支援從Net環境中讀取圖片(Http、Ftp等),因為只是個擴充,也沒啥好說的,直接上代碼就是 using System.Drawing; using System.Net; public
Time of Update: 2015-05-21
【學習筆記】JavaScript編碼規範- 空白,學習筆記javascript使用定位字元設定兩(四)個空格,此功能一般在IDE中可配置。具體可根據實際要求。// badfunction() {∙∙∙∙var name;}// badfunction() {∙var name;}// goodfunction() {∙∙var name;}在左側大括弧前面保留一個空格。// badfunction test(){console.log('test');
Time of Update: 2015-05-21
線段樹成段更新 hdu 1698 Just a
Time of Update: 2015-05-21
Linux系統編程——系統調用之 I/O 操作(檔案操作),linux系統調用檔案描述符在 Linux 的世界裡,一切裝置皆檔案。我們可以系統調用中 I/O 的函數(I:input,輸入;O:output,輸出),對檔案進行相應的操作( open()、close()、write() 、read()
Time of Update: 2015-05-21
leetcode 212: Word Search II,leetcode212Word Search IITotal Accepted: 423 Total Submissions: 2510Given a 2D board and a list of words from the dictionary, find all words in the board.Each word must be constructed from letters of sequentially
Time of Update: 2015-05-21
spring+springmvc+hibernate整合執行個體,springmvchibernate上篇博文中寫了spring與springmvc的整合,而這一篇則是又加上了hibernate。與上次一樣,這一次仍然是先匯入jar包,這一次則要加入hibernate中的jar包,如所示:同時再建立兩個源檔案夾,一個為config,一個為test,分別存放設定檔與測試案例,現在來進行spring,springmvc以及hibernate的配置。建立spring-hibernate.xml,app