var time = "/Date(1279270720000+0800)/";var tme1 = ChangeDateFormat(time); alert(tme1);JS方法為: function ChangeDateFormat(cellval) { var date = new Date(parseInt(cellval.replace("/Date(", "").replace(")/", ""), 10)); var month = date.getMonth()
ms sql server1、查詢所有表select [id], [name] from [sysobjects] where [type] = 'u' order by [name]2、查詢所有資料庫3、select [name] from [sysdatabases] order by [name]查詢表中欄位 select [name] from [syscolumns] where [name] = 'tableXXX'order by [colid]oracle 1、尋找表的所有索引(
這註定又將是一個無眠的夜晚。恍如隔世般的日子以後,又見雪豹。成功的安裝之後,也就把過去的兩天假期,畫上了一個圓滿的句號。新的天和新的日子又開始了。彷彿我又一次做了MS的叛徒。在這樣一個寒冷的觸動的夜晚,多久沒有仰望過滿天的繁星了,遙遠的夜空,南邊真的有一顆在向我眨眼。忽然想起獅子王中的一句台詞,Look at the stars the great kings of the past look down on us from those
Box2D 篇: Box2D中使用b2ContactListener進行碰撞檢測Intro to Box2D with Cocos2D Tutorial:Bouncing BallBox2D——入門教程Box2d API Chipmunk 篇:物理引擎chipmunk chipmunk物理引擎的基本概念和基本用法 加速計感應器篇:IPhone特有的API 感測Iphone 的重力加速感應器 integrate Chipmunk and
轉來的,暫時先不翻譯了。沒幾行。暫時正在看第三個,小鴿子跳的,但是貌似他這個不是上架產品的全代碼,因為暫時好像沒有實現手勢移動的操作。不過改一改,變成男人就下100層,加上我前幾天說的那個重力物理引擎的話,貌似是個不錯的主意。。。呵呵。 I’ve mentioned the excellent Cocos2D open source 2d iphone game engine many times. The engine itself comes with many examples
cocos2d Best Practices Improving performance 提高效能 使用這個嚮導: performance tests在Xcode中關閉thumb編輯Thumb 代碼要比non-thumb代碼慢很多Director:使用FastDirector. FastDirector不需要垂直同步. 要比普通的Director快很多// must be called before any other call to the director[Director