我想,當用戶輸入時,打字結束後運行任何東西(例如:AJAX CALL)0000/00/00(它是格式日期),它怎麼樣? like:
if user typed: 2011/05/04 -> run: $.ajax()...
if user typed: 2011/05 -> not run: $.ajax()...
...
運行$ .ajax()的唯一的事情是真正的輸入這種格式0000/
可能重複: Absence of typeof operator in C++03? 是否有可能使用模板來獲得編譯時型便攜在表達前期的C++ 0x C++?但是由於我們使用模板的,可能顯然需要 int foo() { return 0; } //Let's say we have this
typeof(foo()) x; //x would now be of type 'int'
語法