Time of Update: 2015-01-05
標籤: Writer:BYSocket(泥沙磚瓦漿木匠) 微博:BYSocket 豆瓣:BYSocket Reprint it anywhere u want. Why to write about Web Security? A java file can hack your server.One JSP can download any file. How to do this? 1. Write a JSP and upload to
Time of Update: 2015-01-04
標籤:class danli{//需要一個儲存類的唯一執行個體的靜態成員變數private static $_instance;private function __construct(){echo ‘單例!‘;}//建立__clone方法防止對象被複製複製public function __clone(){trigger_error(‘不能被複製!‘,E_USER_ERROR);}//單例方法,用於訪問執行個體的公用的靜態方法public static function
Time of Update: 2015-01-04
標籤://校正是否全由數字組成 var patrn=/^[0-9]{1,20}$///校正登入名稱:只能輸入5-20個以字母開頭、可帶數字、“_”、“.”的字串 var patrn=/^[a-zA-Z]{1}([a-zA-Z0-9]|[._]){4,19}$/;//校正使用者姓名:只能輸入1-30個以字母開頭的字串 var
Time of Update: 2015-01-04
標籤:html + css表格:table{ table-layout: fixed;}}ttd{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}}本方法用於解決表格單元格內容過多時的美觀問題,主要涉及到4句CSS樣式:1. table-layout:
Time of Update: 2015-01-04
標籤:jquery 序列化 json 對象 <form id="myform"><table><tr><td>姓名:</td><td> <input type="text" name="name" /> </td&
Time of Update: 2015-01-04
標籤:線上網站類:WebPageTest說明:線上的網站效能評測網站,地址http://www.webpagetest.org/補充:其實這網站也是個開源項目,所以支援自己搭建一個內部的測試網站 ShowSlow說明:showslow是yslow的資料收集與展示平台http://www.showslow.com/,它是一個開源的php項目,可以用來與firefox的yslow外掛程式、page speed外掛程式或者dynatrace通訊,收集外掛程式或程式所發送
Time of Update: 2015-01-04
標籤:exports是將函數能被引用該方法的模組引用到, 它有兩種寫法 exports.functionName = function() 和 module.exports = function() 例子: sourse/sourseList.js
Time of Update: 2015-01-04
標籤:action 控制器 school null --------------Html.ActionLink@Html.ActionLink("當前控制器的Index頁面", "Index")@Html.ActionLink("SchoolType控制器的Index頁面", "Index",
Time of Update: 2015-01-04
標籤:netsuite中國 netsuite顧問 netsuite crm netsuite trigger networks 650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/58/1C/wKiom1SpDFzSBQBtAABdxvs2xzM397.jpg"
Time of Update: 2015-01-04
標籤: Demo.sql 1 create table Car( 2 [id] int identity, 3 [brand] varchar(50) not null, 4 [type] varchar(50) not null 5 ) 6 go 7 8 insert into Car ([brand],[type])values(‘BMW‘,‘B‘),(‘BMW‘,‘M‘),(‘BMW‘,‘W‘), 9 (‘BENZ‘,‘B‘),(‘BENZ‘,‘
Time of Update: 2015-01-04
標籤:一:JavaScript靜態頁面值傳遞之URL篇能過URL進行傳值.把要傳遞的資訊接在URL上.例子:參數傳出頁面Post.htm—> <input type="text"name="username"><input type="text" name="sex"><input type="button"value="Post"><script language="javascript" >function
Time of Update: 2015-01-04
標籤:在PHP中可以輕鬆的使用下面的語句實現禁止頁面緩衝,但比較難記特整理下,方便大家使用。 核心代碼: 複製代碼代碼如下:header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); header("Cache-Control: no-cache,
Time of Update: 2015-01-04
標籤:WebView 實現返回到最後一個 在退出 import android.app.Activity;import android.os.Bundle;import android.view.KeyEvent;import android.view.Menu;import android.view.MenuItem;import android.view.View;import android.webkit.WebChromeClient;import android.
Time of Update: 2015-01-04
標籤: 一、選取器 1、選取器的分組:一個Style可以對多個選取器生效,只用在不同的選取器中間加入逗號即可。如:h1,h2,h3,h4,h5,h6 { color: green; } PS:CSS規定,所有子項目繼承父元素的屬性。但是對子項目的Style做修改後,就會覆蓋父元素的屬性。 2、派生選取器 通過元素的上下文關係去選擇元素,不同層級的元素使用空格隔開即可,表示選擇空格前的元素中後代元素為空白格後的內容的元素。如:li strong { font-style:
Time of Update: 2015-01-04
標籤:這是預設範本:
Time of Update: 2015-01-04
標籤:預設情況下,TFS在迭代視圖中不計算周末的工作,如果出現調休的情況,則周末的工作日不會出現在迭代視圖中,也不會參與燃盡圖 (burndown chart)的計算。但是可以調整團隊一周中的工作日,從而修正迭代計算方式,修改的方式參考: Figure 1 點擊系統設定按鈕 Figure 2 – 選擇團隊 Figure 3 – 勾選星期日,即可(不需要儲存) Figure 4 – 重新整理迭代介面,你將看到出現6個工作日在TFS 2
Time of Update: 2015-01-05
jQuery與Ajax,jQueryAjax11 jQuery與AJAX11.1 AJAX的應用11.2 AJAX原理與XMLHttpRequest對象11.2.1 AXJX的原理:其核心原理在於使用XMLHttpRequest對象發送非同步請求。11.2.2 XMLHttpRequest對象為了相容多種不同版本的瀏覽器,其建立類的方法如下:var xmlHttp=false;//開始初始化XMLHttpRequest對象if(window.XMLHttpRequest){
Time of Update: 2015-01-05
華為機試—頻率最小的字元,華為頻率最小字元輸入一個字串,輸出出現次數最少,或者說出現頻率最小的字元。#include<iostream>#include<map>#include<cctype>#include<string>#include<climits>using namespace std;int main(int argc, char *argv[]){ string s; cin>>s;
Time of Update: 2015-01-05
華為機試—根據各個位的和排序,華為機排序#include <iostream>#include <string>using namespace std;int sum(int x){int sum=0;while (x!=0){sum+=x%10;x=x/10;}return sum;}void sort1(int x[],int n){int i,j,k;for (i=0;i<n;i++){for (j=0;j<=i;j++){if (x[i]<=x[
Time of Update: 2015-01-05
.net mvc4 利用 PagedList分頁,mvc4pagedlistmvc