Time of Update: 2013-11-06
1)適應範圍:readonly:input[type="text"],input[type="password"],input[type="teaxtarea"]disabled:所有的表單元素,如select, radio, checkbox,
Time of Update: 2013-11-06
調試一個asp.net網頁,點擊一個按鈕調用後台函數時,報如下錯誤:回傳或回調參數無效。在配置中使用 <pages enableEventValidation="true"/> 或在頁面中使用 <%@ Page EnableEventValidation="true" %> 啟用了事件驗證。出於安全目的,此功能驗證回傳或回調事件的參數是否來源於最初呈現這些事件的伺服器控制項。如果資料有效並且是預期的,則使用
Time of Update: 2013-11-06
artZoom:常用於微博,支援圖片放大縮小旋轉AutoComplete:自動完成BackTop:當內容多時出現“返回頂部”CFUpload:批量上傳圖片,支援預覽,支援眾多回傳事件Common:網站常用的基礎jquery庫FancyBox:眾多遮罩層中出彩的一個,比graybox什麼的都好用,事件支援也比較多,推薦使用Gallery:相簿集,最好用的一個!可以實現QQ空間照片瀏覽類似的功能imgAreaSelect:上傳頭像預覽,並可支援矩形選擇,眾多參數自行定製kindedit
Time of Update: 2013-11-06
點擊劫持是一種視覺上的欺騙手段。攻擊者使用一個透明的、不可見的iframe,覆蓋在一個網頁上,然後誘使使用者在該網頁上進行操作,此時使用者將在不知情的情況下點擊透明的iframe頁面上的某個按鈕或者連結。通過調整iframe 頁面的位置,可以誘使使用者恰好點擊在iframe 頁面的一些功能性按鈕上。<head><title>CLICK JACK!!!</title><style>iframe {width: 900px;height: 250px;
Time of Update: 2013-11-06
keycode 8 = BackSpace BackSpacekeycode 9 = Tab Tabkeycode 12 = Clearkeycode 13 = Enterkeycode 16 = Shift_Lkeycode 17 = Control_Lkeycode 18 = Alt_Lkeycode&
Time of Update: 2013-11-06
本文緊接第二部分:《BackboneJS架構的技巧及模式(2)》http://blog.csdn.net/chszs四、頁面部分重新整理當第一次使用Backbone.js開發應用時,典型的視圖結構是像這樣的:var View = Backbone.View.extend({ initialize: function(options) { this.model.on('change', this.render, this); }, template:
Time of Update: 2013-11-08
題目:/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */class Solution {public: ListNode *mergeTwoLists(ListNode *l1, ListNode *l2) {
Time of Update: 2013-11-08
http://acm.hdu.edu.cn/showproblem.php?pid=1166不懂得可以看劉汝佳訓練指南P194//線段樹版:#include <iostream>#include <cstdio> #include <cstring>using namespace std;int n,s[50005*4];void update(int id,int d,int L,int R,int O){int M=L+(R-L)/2;if(L==
Time of Update: 2013-11-08
#include <iostream>#include <cstdio>#include <cstring>#include <algorithm>using namespace std;const int maxn=25e3+9;int n;bool use[maxn];struct{ int a,b,c,d;}data[maxn];struct A{ int key,down,up,id; bool operator
Time of Update: 2013-11-08
CREATE TABLE students(student_id CHAR(4) NOT NULL,lastname CHAR(15),firstname CHAR(15), PRIMARY KEY(student_id)); CREATE INDEX lname ON students(lastname);struct student_record { char student_id[4]; char last_name[15]; char first_name[
Time of Update: 2013-11-08
題意:解題思路:#include <stdio.h>#include <vector>#include <algorithm>using namespace std;#define pb push_backconst int maxn = 10000 + 10; // 點的個數const int maxm = 100000 + 10; // 邊的個數struct Edge { int u, to, next, vis, id;}
Time of Update: 2013-11-08
迭代器模式(Iterator):提供一種方法順序訪問一個彙總對象中各個元素,而又不暴露該對象的內部表示。 迭代器模式結構圖: typedef String object;Iterator迭代器抽象類別: class Iterator{ public: virtual object&
Time of Update: 2013-11-08
is being encoded to numbers using the following mapping:, it could be decoded as (1 2) or (12). is 2.dp:int numDecodings(string s) { // Start typing your C/C++ solution below // DO NOT write int
Time of Update: 2013-11-08
長度為i-k-1的首碼A和尾碼B相同。只有這樣,我們才可以前移k位後從新的位置繼續比較。假設我們現在已經求得next[1]、next[2]、……next[i],分別表示長度為1到i的字串的首碼和尾碼最大公用長度,現在要求next[i+1]。由我們可以看到,如果位置i和位置next[i]處的兩個字元相同(),則next[i+1]等於next[i]加1。如果兩個位置的字元不相同,我們可以將長度為next[i]的字串繼續分割,獲得其最大公用長度next[next[i]],然後再和位置i
Time of Update: 2013-11-08
大話分頁一、大話分頁二)的介紹,我認為我想介紹的東西已經介紹完了,不過想精益求精的童鞋可以繼續看本篇文章。大話分頁一),從實現功能上來說,它沒有任何問題,不過就OO思想來說,這個類是有一點問題的:實現分頁,我們是要用到offSet和pageSize兩個參數,也就是說他們是必須的。可是我們每當使用到分頁的時候,除了穿商務邏輯所需的參數,還需要傳遞這兩個參數。這樣,方法未免有些太過冗長,有沒有一種方法,可以讓它自動傳遞這兩個參數,開發人員不用手動去管它呢?它就是threadlocal。SystemC
Time of Update: 2013-11-08
bool IsSubtree(BinaryTreeNode* pRoot1, BinaryTreeNode* pRoot2) { if (pRoot1 == NULL || pRoot2 == NULL) { return false; } stack<BinaryTreeNode*> stk; stk.push(pRoot1); while (!stk.empty()) {
Time of Update: 2013-11-08
我個人認為物件導向的三個特徵中最難理解的就是多態,因為他要求程式員對繼承和封裝都有一定的感悟才可以。寫個例子來說明一下:public PolymorphismTest{public work(Person person){person.work();}public main(String[] args) {PolymorphismTest b =
Time of Update: 2013-11-08
【輸出】 pOutputStr: 輸出字串,空間已經開闢好,與輸入字串等長;輸入:“afafafaf” 輸出:“af”輸入:“pppppppp”
Time of Update: 2013-11-08
引言:除了第一字元(下標0)以外,為其餘N-1個字元各建立一個線程,每個線程先sleep一秒(也可以更長),再將對應位置的字元和第一個字元交換;N-1個線程完成後,主線程結束。原理暗藏在題目中,sleep一秒後,因為sleep的不準確性,這N-1個線程幾乎同時醒來(就緒)(試想如若sleep非常精確,各個線程醒來的順序就會和建立順序相同);又由於線程調度的隨機性,這時會被執行的線程是隨機的,(不知先後順序地)執行N-1次之前所述的交換所得的便是一個偽隨機序列。不過當時想不起來pthread_cr
Time of Update: 2013-11-08
原創作品,允許轉載,轉載時請務必以超連結形式標明文章 原始出處 、作者資訊和本人聲明。否則將追究法律責任。作者:永恒の_☆ 地址:http://blog.csdn.net/chenghui0317/article/details/12137845一、前言