Time of Update: 2015-02-26
標籤:Helper_ImgCode類主要提供產生驗證碼和驗證碼校正的介面。create()產生驗證碼用法://控制器檔案中class Controller_default{ function actionImgCode(){ return Helper_ImgCode::create(6,900,‘simple‘); } }//視圖檔案中<img src="<?php echo
Time of Update: 2015-02-26
標籤:前言 MVC在編譯時間,不會提示View中的錯誤,我們在發布項目的時候會一個一個的提示異常,項目大的時候會非常頭疼,因為每次發布都需要至少5分鐘,最後收到只有一個異常資訊,如果頁面異常過多,例如最近整理代碼修改了很多底層代碼,這樣用發布的方式去找異常效率非常低 解決方案 參考網址:http://www.dotnetcurry.com/showarticle.aspx?ID=698 http://haacked.com/archive/2011/05/09/comp
Time of Update: 2015-02-26
標籤:一.設定Cookie的2種方式1. Repsonse.Cookie[“名”] = 值;2. HttpCookie hcCookie = new HttpCookie(“名”,值);hcCookie.Expires = Date.Now.AddDays(1);這裡可以增加月R
Time of Update: 2015-02-26
標籤:CSS代碼:th{ height: 30px; line-height: 20px; background: #0093D9; color: #fff;} td{ padding: 6px 10px; border-bottom: 1px solid #95bce2; text-align: center; vertical-align: top;} tr.alt td{ background: #ecf6fc;} tr.over td{
Time of Update: 2015-02-26
標籤:js實現滑鼠的滑動<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-
Time of Update: 2015-02-26
標籤:資源來自:https://github.com/maxzhang/maxzhang.github.com/issues/12html5並不是一個什麼很新鮮的東東了,首先不要有概念上的誤區,我想題主說的html5是指一個泛概念,html5是由下面幾個技術組成的一個整體:HTML5 ~= HTML + CSS + JS推薦一個PPT可以讓你全面瞭解HTML5:http://slides.html5rocks.com/HTML部分包括大家已經熟知的HTML4.01 Standard http:/
Time of Update: 2015-02-26
標籤:1.需要apache開啟rewrite_module,然後修改httpd.conf的AllowOverride none 為AllowOverride All(裡面,不同的環境目錄不同)2.在CI的目錄下面建立.htaccess檔案,加入如下內容:RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-fRewriteCond $1 !^(index\\.php|images|robots\\.txt)RewriteRule ^(.*)$
Time of Update: 2015-02-26
標籤:原文: http://weblogs.asp.net/scottgu/introducing-asp-net-5 ASP.NET 5預覽版發布了, 可以在這下載最新的Visual Studio 2015體驗ASP.NET 5開源, 可以在Windows, Linux和Mac上開發並運行.ASP.NET 5 有如下一些基本的改進:跨平台可在 Windows, Mac和Linux上編譯並運行Built on .NET Core, which supports
Time of Update: 2015-02-26
標籤: &
Time of Update: 2015-02-26
標籤: 1. lucene-3.5.0.jar 2. 建立目錄C:\testsource,建立目錄C:\testindex。 3.在C:\testsource下建立test1.txt, test2.txt,內容分別為:“商務休閑品牌男裝西褲襯衫”,“潮流休閑品牌女裝裙子大衣”。 4.建立索引 import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import
Time of Update: 2015-02-26
標籤:純css 三角形箭頭div邊框代碼<html><head><title>純CSS實現 “三角箭頭”代碼</title><meta http-equiv="Content-Language" content="zh-CN"/><mce:style type="text/css"><!--span {_overflow:hidden;}.wp
Time of Update: 2015-02-26
標籤:package com.fxr.demo3;import java.io.IOException;import org.apache.lucene.document.Document;import org.apache.lucene.index.Term;import org.apache.lucene.search.IndexSearcher;import org.apache.lucene.search.ScoreDoc;import org.apache.lucene.search.
Time of Update: 2015-02-26
標籤:1、什麼是Atrribute 首先,我們肯定Attribute是一個類,下面是msdn文檔對它的描述: 通用語言執行平台允許你添加類似關鍵字的描述聲明,叫做attributes, 它對程式中的元素進行標註,如類型、欄位、方法和屬性等。Attributes和Microsoft .NET
Time of Update: 2015-02-26
標籤:兩個資料表具體操作如下: /**********************資料庫操作********************/ ////////添加資料////////// //填充資料
Time of Update: 2015-02-26
標籤:DOM裡常見的三種節點類型(總共有12種,如docment):元素節點,屬性節點以及文本節點,例如<h2 class="title">head</h2>,其中h2是元素節點,class是屬性節點,head是文本節點,tagName和nodeName的語義是一樣的,都是返回所包含標籤的名稱,例如上面的h2標籤,都是返回h2,但是tagName只能在元素標籤上使用,而nodeName則可以在所有的節點上使用。從DOM層次來看,nodeName是node
Time of Update: 2015-02-26
標籤:linux c++ http tcp #include <arpa/inet.h>#include <assert.h>#include <errno.h>#include <netinet/in.h>#include <signal.h>#include
Time of Update: 2015-02-26
標籤:http://androidren.com/index.php?qa=307&qa_1=lucene和solr的區別一、名詞Lucene是一套資訊檢索工具包,但並不包含搜尋引擎系統,它包含了索引結構、讀寫索引工具、相關性工具、排序等功能。Solr是基於Lucene的搜尋介面。提供XML/HTTP 和 JSON/Python/Ruby
Time of Update: 2015-02-26
標籤:javascript 解密 摘要:
Time of Update: 2015-02-26
標籤:json比較簡單,所以先從json開始學起。一 json的名稱: json的全稱是javascript object notation,中文名稱為js 對象標記法。 json的定義:json是一種輕量級的資料交換格式,具有良好的可讀和快速編寫的特性。,可以在不同平台間進行資料交換。json採用相容性很高的文字格式設定,同時也具備類似於c語言體系的行為。--json.org二 json的執行個體和結構: 一個簡單的json執行個體:{"employees": [
Time of Update: 2015-02-26
標籤:如何判斷js中的資料類型:typeof、instanceof、 constructor、 prototype方法比較如何判斷js中的類型呢,先舉幾個例子:var a = "iamstring.";var b = 222;var c= [1,2,3];var d = new Date();var e = function(){alert(111);};var f = function(){this.name="22";}; 最常見的判斷方法:typeofalert(typeof