Time of Update: 2015-03-11
基於bootstrup 3的jQuery tooltip外掛程式,bootstrupjqueryggtooltip.js是一款非常實用的基於bootstrup 3.X的jQuery tooltip外掛程式。該jQuery
Time of Update: 2015-03-11
Netty5入門(3),netty5入門一、樣本介紹樣本取自《基於Netty5.0進階案例一之NettyWebsocket》,和《Netty
Time of Update: 2015-03-11
【javaSE】Collection架構及List集合,javasecollection************************************************************************
Time of Update: 2015-03-11
html 等待介面,等待介面<div id="form_submit"><input type="button" id="message_submit" value="發布訊息" onclick="sendOSMessageForAll()"/></div><!--等待div--> <div id="pop" style=&
Time of Update: 2015-03-11
如何避免JS變數命名衝突,避免js變數先看問題:<!doctype html><html><head><meta charset="UTF-8"><title>變數範圍問題</title><script>//程式員a寫的代碼var a=123;alert(
Time of Update: 2015-03-11
阻止文本行換行,阻止文本換行 <script type="text/javascript"> function strReplace(str){ var t="",len=0; t=str.replace(/\r\n\g,"\\n").replace(/\n\g,""); document.form.output.value=t; }</script><body><form id="form" method=
Time of Update: 2015-03-11
MarkDown文法學習(一),markdown文法學習 一級標題#二級標題##三級標題###四級標題####五級標題#####六級標題######橫線*** --- ___*字型斜體:* *粗體:** **斜粗體*** ***HTML斜體:<em></em>HTML粗體:<strong></strong>HTML粗斜體:<em><strong></strong></em>引用>
Time of Update: 2015-03-11
JS中document屬性,JSdocument屬性 document.title //設定文檔標題等價於HTML的title標籤 document.bgColor //設定頁面背景色 document.fgColor //設定前景色彩(文本顏色) document.linkColor //未點擊過的連結顏色 document.alinkColor //啟用連結(焦點在此連結上)的顏色 document.vlinkColor //已點擊過的連結顏色 document.URL
Time of Update: 2015-03-11
[JQuery]分頁外掛程式PageList,jquerypagelist雖然已經有了[JQuery]分頁外掛程式jQuery pager plugin功能擴充,可惜蛋疼的UI不一樣,只能重做一個,唉基本上與pager類似,只不過跳轉方式有所變化,以下是具體的js,其中defaultSettings為相關參數設定,其中要注意的是renderPerCall,這個參數如果設為false,將不執行html重繪 $.fn.pageList = function (arg,
Time of Update: 2015-03-11
jQuery外掛程式,jquery外掛程式庫 (1)charCount.js 實現textarea文字輸入限制 (2)quoteRotator.min.js實現文字動畫效果 (selector).quetoRator()(3)jquery.moatext−min.js實現文字動畫效果(selector).moatext({effects:[“lens”,”wave”,”opacity”]}); 文字透鏡效果 文字波浪效果 文字透明效果 (4)elastic-textarea.
Time of Update: 2015-03-11
1205 N階樓梯上樓問題,1205樓梯上樓/*題目描述:N階樓梯上樓問題:一次可以走兩階或一階,問有多少種上樓方式。(要求採用非遞迴)輸入:輸入包括一個整數N,(1<=N<90)。輸出:可能有多組測試資料,對於每組資料,輸出當樓梯階數是N時的上樓方式個數。範例輸入:4範例輸出:5基本思路:走到第n階時,可能是從第n-1階走一步到的,也可能是從n-2階走兩階到的,設F(n)為走到n階的種數,則F(n)=F(n-1)+F(n-2).這是一個動態規劃的問題,其實就是一個斐波那契數列。1
Time of Update: 2015-03-11
(hdu step 5.2.6)確定比賽名次(求入度為0的點的個數),hdu5.2.6題目:確定比賽名次Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 338 Accepted Submission(s): 181 Problem
Time of Update: 2015-03-11
hdu4751 二分圖的判斷,hdu4751二分圖http://acm.hdu.edu.cn/showproblem.php?pid=4751Problem Description This year is the 60th anniversary of NJUST, and to make the celebration more colorful, Tom200 is going to invite distinguished alumnus back to
Time of Update: 2015-03-11
【LeetCode從零單排】No118Pascal's Triangle,leetcodeno118題目Given numRows, generate the first numRows of Pascal's triangle.For example, given numRows = 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]]代碼public
Time of Update: 2015-03-11
Spring之DAO模組,springdaoSpring的DAO模組提供了對JDBC、Hibernate、JDO等DAO層支援DAO模組依賴於commons-pool.jar、commons-collections.jarSpring完全拋棄了JDBC API,開發人員只需要使用封裝好的JdbcTemplate執行SQL語句,然後得到需要的結果DAO層商務邏輯public interface IpersonDao{ public String
Time of Update: 2015-03-11
樹鏈剖分 FZU 2082,fzu2082#include<cstring>#include<cstdio>#include<algorithm>using namespace std;const int maxn = 50005;int val[maxn];struct node{ int l,r; long long sum;} xds[maxn<<2];void build(int
Time of Update: 2015-03-11
代碼之美,編程之美 以前一直嚮往著簡潔,美麗的代碼,但是大多數我看不懂。直到現在,我也能寫出讓我覺得很美麗的代碼。 1.在main方法中建立一個子線程,讓其輸出1到100之間的偶數。是不是感覺好簡單?那我來給你寫寫My Code,我是通過實現Runnable介面來實現的。public static void main(String[] args){ new Thread(new Runnable(){ @Override public void
Time of Update: 2015-03-11
BZOJ-幾道比較有趣的題目,BZOJ-幾道比較有趣 題目一 描述 BZOJ 1008: [HNOI2008]越獄 監獄有連續編號為1…N的N個房間,每個房間關押一個犯人,有M種宗教,每個犯人可能信仰其中一種。如果相鄰房間的犯人的宗教相同,就可能發生越獄,求有多少種狀態可能發生越獄 分析 如果直接求的話十分複雜, 而且貌似還要考慮容斥? 這個問題的關鍵就是轉化一下, 求不能發生越獄的狀態數, 這個比較好求, 再用總的狀態數剪掉即可.
Time of Update: 2015-03-11
DSA Range,dsarange 最近開學了,又複習了下資料結構與演算法,我在MOOC上學的。這次是清華oj平台上的一題。題目:範圍查詢(Range)DescriptioinLet S be a set of n integral points on the x-axis. For each given interval [a, b], you are asked to count the points lying inside.InputThe first line
Time of Update: 2015-03-11
win32位元組+編碼處理,win32位元組編碼VS2012用的編碼格式是GDK,若要用預設UTF-8的工具與VS2012下的C++進行通訊,會出現亂碼現象。網上常說的是在檔案中選擇進階儲存選項,然後選擇相應編碼即可,事實證明,純屬扯淡,這樣做了仍然是GDK格式。唯一好用的方法是在VS2012對接收到的UTF-8字串進行處理。至於處理方式我也不是很懂,就不班門弄斧了,可以參考這篇文章,裡面有詳細代碼:點擊開啟連結 。裡面有個小錯誤,雖然上面有