Time of Update: 2015-09-18
標籤:之前學習的事視圖與模版,我們在控制器檔案中直接定義一個數組,讓其在模版檔案中用ng-repeat指令構造一個迭代器,定義的數組如同以下: $scope.phones = [ {‘name‘:‘xioabin‘,‘number‘:‘18824863682‘,‘age‘:‘12‘}, {‘name‘:‘xioalong‘,‘number‘:‘18824863683‘,‘age‘:‘19‘}, {‘name‘:‘xiaohua‘,‘number‘:
Time of Update: 2015-09-18
標籤:最近和同事聊天,得知他們在使用一種叫做Hessian的WebService實現方式實現遠 程方法調用,是輕量級的,不依賴JavaEE容器,同時也是位元據格式傳輸,效率比SOAP的XML方式要高。感覺像是RESTFUL方式類似,好奇
Time of Update: 2015-09-18
標籤:linux下環境搭建 第一步 安裝Apache2sudo apt-get install apache2 第二步 安裝PHP模組sudo apt-get install php5 第三步 安裝Mysqlsudo apt-get install mysql-serversudo apt-get install mysql-client 第四步 其他模組安裝sudo apt-get install libapache2-mod-php5sudo apt-
Time of Update: 2015-09-18
標籤:4 down vote accepted In order to successfully install the PHP manager for IIS 8, you need the .NET 3.5 framework installed and enabled, and for some reason, that‘s not part of the setup, which does download the .NET 2.0 framework.So, just add the
Time of Update: 2015-09-18
標籤:剛接觸web編程的時候就被老師安利了sublime text2
Time of Update: 2015-09-18
標籤:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>tssljc.com/唐山輕質隔牆板---用CSS實現的幾個非常漂亮的按鈕</title> <style> .btn { BORDER-RIGHT: #7b9ebd 1px solid;
Time of Update: 2015-09-18
標籤: 提起JS中的繼承很多”大神“們都會提起call,apply,單純的對象賦值繼承,以及原型鏈繼承等眾多的方式以及它們的不足之處,而且還會不時的把一些物件導向的設計模式”團團“的帶出來,而當被問道JQuery的extend卻很少人真正去實際瞭解它的”秘密“。其實JQuery的繼承方式就是一種拷貝方式的繼承,但是在這裡還有點小小的“陷阱”需要大家瞭解下。那麼馬上看這段代碼: var a1 = {
Time of Update: 2015-09-18
標籤:public class ValidataCode : IHttpHandler, System.Web.SessionState.IRequiresSessionState{ HttpContext context; public void ProcessRequest (HttpContext context1) { this.context = context1; CreateCheckCodeImage(GenerateCheckCode()
Time of Update: 2015-09-18
標籤:寫在前面項目中有這樣的需求,在android端嵌入的html5應用中,需要掃描二維碼,而一般的瀏覽器是不允許你調用網路攝影機的。最後時限方式是由app的webview進行掃描,將掃描結果返回,也就是js的回調方法中。例子說明<!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Time of Update: 2015-09-18
標籤: 一.XML Properties > Validation you have two options: 1- Configure Workspace Settings (disable the validation for the current workspace) manual and XML Schema Validator, 2- Check enable
Time of Update: 2015-09-18
標籤:先看看這段代碼var x =9;var fobj ={ x:1, test:function(callback){ var x= 2; callback(); }}function pp(){ var x = 3; fobj.test(function(){ alert(this.x)//9 })}pp();上面這段代碼列印出的是 9
Time of Update: 2015-09-18
標籤:Recurrent Neural Networks Tutorial, Part 1 – Introduction to RNNsRecurrent Neural Networks (RNNs) are popular models that have shown great promise in many NLP tasks. But despite their recent popularity I’ve only found a limited
Time of Update: 2015-09-18
標籤:apache php./configure \--prefix=/application/apache2.2.31 \--enable-deflate \--enable-expires \--enable-headers \--enable-modules=most \--enable-so \--with-mpm=worker \--enable-rewrite./configure \--prefix=/application/php-5.6.13
Time of Update: 2015-09-18
標籤:js 產生名片、連結等二維碼<div id = "qrcodeid"></div> //產生的二維碼放在此 div 中<script type="text/javascript"
Time of Update: 2015-09-18
標籤:httpd每次安裝完httpd後,還要改許多參數,很麻煩,於是想到了用指令碼自動完成,下面貼出我個人一些指令修改配置.環境準備:CentOS6.5 x86_64httpd-2.4.16指令配置1.PidFile增加# sed -i ‘/^ServerRoot/a \PidFile "/var/run/httpd.pid"‘ /etc/httpd/httpd.conf2.Servername修改# sed -i -r
Time of Update: 2015-09-18
標籤:前 些日子開始著真正的去瞭解下設計模式,開始麼,簡單地從單例模式開始,當然網上看了一些資料,單例模式比較好理解,看看介紹,然後看看代碼基本也就能夠理 解了,設計模式這些的花點心思基本的是能夠理解的,當然要想很好的運用到項目上也是需要一定的實踐,不能只是知道瞭解,或者說的是很厲害很懂的,一到要實
Time of Update: 2015-09-18
標籤:Lucene是Apache發布的開源搜尋引擎開發套件,不僅提供了核心的搜尋功能,還提供了許多其他功能外掛程式,例如:拼字檢查功能模組。搜尋拼字檢查模組實作類別在lucene-suggest-x.xx.x.jar包中,package名為org.apache.lucene.search.spell,其中拼字檢查功能的核心實現有3個類,分別為:SpellChecker、DirectSpellChecker、WordBreakSpellChecker; 3個類提供了不同的拼字檢查方式,區
Time of Update: 2015-09-18
標籤:一、如果是asp.net中的控制項有OnClientClick事件,可以在控制項中直接加OnClientClick--用戶端點擊事件二、如果asp.net中的控制項沒有OnClientClick事件,可以在標籤中直接加JS中的事件,例如:onfocus事件(獲得焦點時觸發)onblur事件(失去焦點時觸發)三、當JS中需要嵌入C#代碼時,可將js代碼寫入後端例:Label1.Attributes.Add("onclick","alert(‘"+DateTime.Now.ToString()
Time of Update: 2015-09-18
標籤:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>jQuery-flot外掛程式資料視覺效果顯示</title> <link rel="stylesheet" href="../css/blue.css"
Time of Update: 2015-09-18
標籤:HttpServletResponse輸出有兩種格式,一種是字元流,一種是位元組流。1.字元流 // 這句話的意思,是讓瀏覽器用utf8來解析返回的資料,即設定用戶端解析的編碼 response.setContentType("text/html; chartset=UTF-8"); //這句話的意思,是告訴servlet用UTF-8轉碼,而不是用預設的ISO8859 ,即服務端對中文的編碼