Time of Update: 2015-02-26
標籤:listview 摺疊菜單 <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%String path = request.getContextPath();String basePath =
Time of Update: 2015-02-26
標籤:jquery mobile<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":&
Time of Update: 2015-02-26
標籤:php extension imagemagick php5 iis 由於項目需要,伺服器上要安裝php和imagick庫的支援,網上搜了下,教程很多,基本類似,IIS7配置PHP就不說了,現在有PHP Manager,用fastcgi模式配置起來很方便1、先安裝 ImageMagick-6.8.7-7-Q1
Time of Update: 2015-02-26
標籤: 在做搜尋功能時,文字框輸入文本就得請求一次資料,如果上一次的請求還沒回又請求了就導致資料錯誤和無用的資料請求。我們需要輸入文本時候判斷上一次的ajax請求是否完畢,若還沒完畢就終止本次請求。對於jquery:<script src = "jquery.js"></script><script>var xhr = $.ajax({type:‘POST‘, url:‘b.php‘, data:‘‘,
Time of Update: 2015-02-26
標籤:CSS書寫規範及順序CSS書寫順序1.位置屬性(position, top, right, z-index, display, float等)2.大小(width, height, padding, margin)3.文字系列(font, line-height, letter-spacing, color- text-align等)4.背景(background, border等)5.其他(animation,
Time of Update: 2015-02-26
標籤: public class RestClient { private string BaseUri; public RestClient(string baseUri) { this.BaseUri = baseUri; } #region Delete方式 public string Delete(string data, string uri) {
Time of Update: 2015-02-26
標籤:Discuz的密碼密碼編譯演算法其實就是兩次MD5加密,首先用明文進行一次加密,之後隨機產生一個salt,再把第一次的密文後面添加salt作為明文再進行一次MD5加密。salt儲存在uc_members表裡,可以通過使用者名稱進行擷取。像這樣:MD5(MD5(明文)+salt)下面是.net的實現代碼: 代碼如下複製代碼string GetDiscuzPWString(string sourceStr, string salt){
Time of Update: 2015-02-26
標籤:出自:http://lab.abhinayrathore.com/jquery-standards/ 載入jQuery1.堅持使用CDN來載入jQuery,這種別人伺服器免費幫你託管檔案的便宜幹嘛不佔呢。點擊查看使用CDN的好處,點此查看一些主流的jQuery CDN地址。<script type="text/javascript"
Time of Update: 2015-02-26
標籤:parseURL// This function creates a new anchor element and uses location// properties (inherent) to get the desired URL data. Some String// operations are used (to normalize results across browsers). function parseURL(url) { var a =
Time of Update: 2015-02-26
標籤:應用情境:網站維護和未開發完成時,一般需要把所有請求都跳轉的一個相關說明的頁面,這樣使用者不至於困惑這個網站是不存在還是怎麼了。Solution:在asp.net 中一般使用HttpRedirect 來完成相關功能。1.首先你需要建立一個頁面來作為最終的跳轉頁面,把這個網站的所有請求都重新導向到這個頁面(這裡起個名字叫:Offline.html)。 你可以把你網站相關資訊都寫在這裡,是正在維護,還是沒開發完。2.在IIS中建立一個網站(這裡以IIS7為例說明),切換到Features
Time of Update: 2015-02-26
標籤:相容性 : IE9+ : -ms-transform : IE9隻支援2D轉換 firefox , chrom , opera : 支援3D轉換 寫法 : div { -moz-transform : rotate(10deg);&
Time of Update: 2015-02-26
標籤:<iframe id="uploadframe" width="0" height="0" style="display:none;" name="upload_target"></iframe><form id="uploadpic" target="upload_target" enctype="multipart/form-data" method="post" action="" style="display: none;"><input
Time of Update: 2015-02-26
標籤:匯入的檔案 chosen.css、 chosen.jquery.min.js、jquery.jshtml: <select class="chosen-select" id="form-field-select" data-placeholder="Choose a State...">
Time of Update: 2015-02-26
標籤: format-detection翻譯成中文的意思是“格式檢測”,顧名思義,它是用來檢測html裡的一些格式的,那關於meta的format-detection屬性主要是有以下幾個設定: <meta name="format-detection" content="telephone=no" /><meta name="format-detection" content="email=no" /><meta
Time of Update: 2015-02-26
標籤:原文:HTML標籤marquee實現滾動效果頁面的自動滾動效果,可由javascript來實現,但是今天無意中發現了一個html標籤 - <marquee></marquee>可以實現多種滾動效果,無需js控制。使用marquee標記不僅可以移動文字,也可以移動圖片,表格等.文法:<marquee>...</marquee>; 說明:在標記之間添加要進行滾動的內容。重要屬性:1.滾動方向direction(包括4個值:up、 down、
Time of Update: 2015-02-26
標籤:首先實現寫一個 實現介面SecureProtocolSocketFactory的類。/** *ClassName: bcde *date: 2015年2月26日 下午4:51:01 * *@author limh *@since JDK 1.7 */import java.io.IOException;import java.net.InetAddress;import java.net.InetSocketAddress;import java.net.Socket;import
Time of Update: 2015-02-26
標籤:1,傳入參數,傳出參數public int GetTeam1Id(string userId) { int team1ID = -1;
Time of Update: 2015-02-26
標籤:Viewport DEMO一個常用的針對移動網頁最佳化過的頁面的 viewport meta 標籤大致如下:<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />這段代碼的意思是,讓viewport的寬度等於物理裝置上的真實解析度,不允許使用者縮放。一都主流的web
Time of Update: 2015-02-26
標籤:頁面的自動滾動效果,可由javascript來實現,但是今天無意中發現了一個html標籤 - <marquee></marquee>可以實現多種滾動效果,無需js控制。使用marquee標記不僅可以移動文字,也可以移動圖片,表格等.文法:<marquee>...</marquee>; 說明:在標記之間添加要進行滾動的內容。重要屬性:1.滾動方向direction(包括4個值:up、 down、 left和
Time of Update: 2015-02-26
標籤:以windows為例,看看下載到得php zip的檔案名稱php-5.4.4-nts-Win32-VC9-x86.zip VC6:legacy Visual Studio 6 compiler,是使用這個編譯器編譯的。VC9:Visual Studio 2008 compiler,就是這個編譯器編譯的。這個其實沒有什麼太大的影響,因為從php 5.3,已經沒有vc6版本提供下載了 TS:Thread Safe 安全執行緒, 執行時會進行線程(Thread)安全檢查NTS:Non