- Aug 04 Mon 2014 14:39
-
ASP.NET 使用 ajax 傳遞 Json 物件
本來以為在client 端要傳輸JSON物件到ASP來做反序列化(Deserialize) 後來才知道做了多餘的事情
在ASP.NET,在接收JSON物件的時候,是直接讀入JSON的"字串化(stringify)"的字串
然後在伺服器端利用讀取stream的方式,把所有的值都讀進來(不使用Request.Form 或 Request.Querystring)
讀進來的字串,要確定沒有多餘的刮弧、反斜線或雙引號,在做一些JSON字串產生的時候,可能會產生一些多餘的符號,是debug的重點,必須多加注意
讀進JSON字串之後,就要用JavaScriptSerializer 的Deserialize 方法來把字串給parse 成物件
- Jul 27 Sun 2014 17:41
-
JQuery plugin 樣板 深入與淺出
我們在使用jQuery ui plugin 時,總是能夠享受到其中許多便利性:plugin 快速並且簡單明瞭的對選擇出來的區塊進行改造與操作
一個強大、功能完善的plugin 應該具備下列幾項要點
1. 可以靠傳入的參數來改變plugin 的形式,做客製化的調整
2. 提供plugin 相關的method,來對plugin 做操作
3. 清楚的API
- Jul 25 Fri 2014 14:49
-
JSP與ASP 語法差異
- Jun 30 Sun 2013 15:13
-
JME3 圖形介面 nifty 筆記

1. 使用nifty
要使用nifty的話,就在程式碼中加入下列這一段
NiftyJmeDisplay niftyDisplay =new NiftyJmeDisplay(assetManager, inputManager, audioRenderer,guiViewPort);
Nifty nifty = niftyDisplay.getNifty();
nifty.fromXml("nifty.xml", "start", this);
- Sep 22 Sat 2012 19:19
-
GLUT開發-3D遊戲設計課程
- Jul 18 Wed 2012 17:41
-
SCJP 6.0考古題解析 (146~150)
第146題:
Given:
1. import java.io.*;
2. publicclass Foo implements Serializable{
3. publicintx, y;
- Jul 09 Mon 2012 23:42
-
SCJP 6.0考古題解析 (141~145)
第141題:
Given:
11. class A{
12. publicvoid process(){System.out.print("A, ");}
13. class B extends A{
- Jul 07 Sat 2012 12:22
-
SCJP 6.0考古題解析 (136~140)
第136題:
Given:
11. publicstaticvoid main(String[] args){
12. try{
13. args = null;
- Jul 07 Sat 2012 01:40
-
SCJP 6.0考古題解析 (131~135)
第131題:
Given:
staticvoid test() throws Error {
if (true)
thrownew AssertionError();
- Feb 18 Sat 2012 23:20
-
SCJP 6.0考古題解析 (126~130)
第126題:
Given:
31. //some code here
32. try{
33. //some code here
- Feb 18 Sat 2012 15:00
-
SCJP 6.0考古題解析 (121~125)
第121題:
Given:
11. publicclass Test{
12. publicenum Dogs {collie, harrier, shepherd},
13. publicstaticvoid main(String[] args){
- Feb 05 Sun 2012 23:44
-
SCJP 6.0考古題解析 (116~120)
第116題:
Given:
11. publicclass Commander{
12. publicstaticvoid main(String[] args){
13. String myProp = /* insert code here */