Time of Update: 2015-03-30
標籤:mvc angularjs 問題:在php的mvc視圖中,我們需要在載入的過程中傳遞一些資料給模板:如://這裡是某個 controller $data['users'] = {something from databases};$this->load->view('home/index',$data);//這裡是對應的視圖<div ng-controller="
Time of Update: 2015-03-30
標籤:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html
Time of Update: 2015-03-30
標籤:for 迴圈從 1 到 10 迭代變數 i。在迴圈主體中,if 語句將(使用模數運算子)檢查 i 的值是否能被 5 整除。如果能被 5 整除,將執行 break 語句。alert 顯示 "4",即退出迴圈前執行迴圈的次數。var iNum = 0;for (var i=1; i<10; i++) { if (i % 5 == 0) { break; } iNum++;}alert(iNum);//輸出 "4"alert 將顯示
Time of Update: 2015-03-30
標籤:基於jersey和Apache Tomcat構建Restful Web服務(二) 上篇部落格介紹了REST以及Jersey並使用其搭建了一個簡單的“Hello
Time of Update: 2015-03-31
window.showModalDialog 應用,showmodaldialog1、參數傳遞 通過vArguments來傳遞參數,類型不限制,對於字串類型,最大為4096個字元,也可以傳遞對象。例: A.htm <script> window.showModalDialog("B.htm","這個是參數值","help:no;scroll:no");</script>B.htm<script>
Time of Update: 2015-03-31
angularjs學習筆記之一(ajax請求),angularjsajax實現ajax請求【HTML 程式碼】<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,user-scalable=no,
Time of Update: 2015-03-30
ext.net 布局-- BorderLayout(邊框布局),Ext.Net中的布局是對ExtJS布局的封裝,可以用在panel控制項,或者繼承自panel的控制項。<body> <ext:ResourceManager runat="server" /> <div> <ext:Viewport ID="Viewport1" runat="server"
Time of Update: 2015-03-30
ajax post請求request.getParameter("")取值為null,ajax取值 今天在寫提交一個json資料到後台,然後後台返回一個json資料類型。但是發現後台通過request.getParamter(“”)取到的值為null。於是寫一個簡單的ajax 請求,來排查問題 前台代碼:$(document).ready(function(){ $("#ajax").click(function(){ var depart=
Time of Update: 2015-03-30
ASP.NET視頻學習小結,asp.net視頻小結利用了十幾天的時間,學習完了北大青鳥的ASP.NET視頻。跟著視頻做裡面的例子。看著自己做出來的例子,還是蠻有成就感的。以前都是學習的做用戶端,即C/S。現在開始學習網頁開發,B/S。區別C/S(Cient/Server)優缺點:C/S的優勢是用戶端可伺服器都可以進行處理,減輕了伺服器的負擔,響應速度快。C/S結構具有較強的交易處理能力,能實現複雜的商務程序。但C/S需要每個用戶端都安裝和配置軟體,當軟體改動後,就需要卸載之前的軟體,重新安裝。不
Time of Update: 2015-03-30
myeclipse 核心快速鍵,myeclipse快速鍵MyEclipse 快速鍵1(CTRL)-------------------------------------Ctrl+1 快速修複Ctrl+D: 刪除當前行 Ctrl+Q 定位到最後編輯的地方 Ctrl+L 定位在某行 Ctrl+O 快速顯示 OutLine Ctrl+T 快速顯示當前類的繼承結構 Ctrl+W 關閉當前Editer Ctrl+K
Time of Update: 2015-03-30
JavaScript中事件回顧,javascript事件回顧 事件其實在第一次學習JavaScript的時候就接觸了,一行非常簡單的代碼 alert('Hello
Time of Update: 2015-03-31
NOJ 2033 一頁書的書 (組合數+dp),noj+dp一頁書的書時間限制(普通/Java) : 1000 MS/ 3000 MS 運行記憶體限制 : 65536 KByte總提交 : 55 測試通過 : 12 題目描述
Time of Update: 2015-03-31
JAVA學習筆記(四十)- 守護線程與中斷線程,java學習筆記 守護線程/* * Daemon線程,即守護線程 * 一般都在後台運行,為其他線程提供服務,不能單獨存在 */public class Test08 { public static void main(String[] args) { MyThread8 t1 = new MyThread8("守護線程");
Time of Update: 2015-03-31
git 合并兩個遠程庫,git合并環境:1. 本地是空的,什麼都沒有2. 有2個不同的項目(工程),在遠端git上3. 需要在本地合并這2個項目開工:1. 從遠端clone第一個工程的代碼下來,並切換到你要合并的分支上。git clone git@xxx.com/project_1.git //這個操作會在本地建一個project_1的檔案夾,裡面就是項目1的代碼。cd project_1git checkout project_1_v1
Time of Update: 2015-03-31
【SICP練習】131 練習3.62,sicp練習1313.62 練習3-62原文Exercise 3.62. Use the results of exercises 3.60 and 3.61 to define a procedure div-series that divides two power series. Div-series should work for any two series, provided that the denominator
Time of Update: 2015-03-31
【SICP練習】125 練習3.56,sicp練習1253.56 練習3-56原文Exercise 3.56. A famous problem, first raised by R. Hamming, is to enumerate, in ascending order with no repetitions, all positive integers with no prime factors other than 2, 3, or 5. One obvious way
Time of Update: 2015-03-31
【SICP練習】132 練習3.63,sicp練習1323.63 練習3-63原文Exercise 3.63. Louis Reasoner asks why the sqrt-stream procedure was not written in the following more straightforward way, without the local variable guesses:(define (sqrt-stream x) (cons-stream 1.
Time of Update: 2015-03-31
search,searchfor #include "stdio.h"#include "string.h"#include "malloc.h" #define MAX_LIST 50typedef struct _SqList { int data[MAX_LIST]; int length;}SqList;//The key difference between Fibonacci search and binary search //is how the
Time of Update: 2015-03-31
用c語言實現 計算一個字串中單詞的個數,字串個數#include<stdio.h>int main(){char string[100];int i , num=0 ,word=0;char c;gets(string);//從鍵盤得到一個字串for(i=0;(c=string[i])!='\0';i++)//字元不是'\0'就執行迴圈{if(c==' ')//遇到空格word置0{word=0;}else if(word==0)//
Time of Update: 2015-03-31
新手學JAVA(二)----String類與StringBuffer類的區別,javastringbuffer 在Java中有兩種字串的操作:String類和StringBuffer類(緩衝字串處理類)。 下面先簡單的說一下兩者的區別。 String類和StringBuffer類都提供了相應的方法實現字串的操作,但二者略有不同。(1) String類