原创 『Android』activity的生命週期

Does not crash if the user receives a phone call or switches to another app while using your app.Does not consume va

原创 Java基礎知識梳理

1.Java中一切都被視爲對象,但是操縱的標識符實際上是對象的一個引用,有時你需要一個引用,但是並不需要一個對象與它關聯。 string s; 這裏創建的只是引用,並不是對象,如果向s發送一個消息,會出現錯誤,因此必須自己創建一個對象

原创 POSIX多線程編程(二)--pthread_join

To explicitly create a thread as joinable or detached, the attr argument in the pthread_create() routine is used. The

原创 C語言動態參數

/* * dynamic_para.c * * Created on: 2012-10-10 * Author: zhaomeng * 動態參數: * 在標準頭文件<stdarg.h>中包含一組宏定義,它們對如何遍

原创 JavaScript中函數按值傳遞的解釋

function setName(obj){ obj.name = "zhaosan"; } var obj = new Object(); setName(obj); alert(obj.name); function s

原创 幾個注意的小算法

看C程序設計語言這本書時,感覺大神寫的程序邏輯性確實很強。很多小細節值得我們學習。 1.轉換十六進制。 int hexalpha_to_int(int c) { char hexalpha[] = "aAbBcCdDeEfF";

原创 struts-1.3.10中的<action-mappings> <action>標籤中<set-property>的用法

<action path="/prepareValidator" type="examples.SuccessAction"> <forward name="success" pa

原创 POSIX多線程編程(一)

簡單線程 主要函數: int pthread_create (pthread_t *, const pthread_attr_t *,void *(*)(void *), void *); /* * ph.c * * Crea

原创 jQuery防止重複提交的方法

function addClickHandlers() { $("a.remote", this).click(function() { $("#target").load(this.href, addClickHandl