當然也可設定某些欄位不提供排序功能 $(document).ready(function() { $("table").tablesorter({ // pass the headers argument and assing a object headers: { // assign the secound column (we start counting zero) 1: { // disable it by setting the property sorter to false sorter: false }, // assign the third column (we start counting zero) 2: { // disable it by setting the property sorter to false sorter: false } } }); });
動態加入新資料 當已完成.tablesorter() 後 如增加了新的資料列,需要改用update $("table").trigger("update"); // set sorting column and direction, this will sort on the first and third column var sorting = [[2,1],[0,0]]; // sort on the first column $("table").trigger("sorton",[sorting]);
Or 此是安裝J2sdk的軟體 1. C:\j2sdk1.4.1_01\jre\bin\win32com.dll 2. C:\j2sdk1.4.1_01\jre\lib\javax.comm.properties 3. C:\j2sdk1.4.1_01\jre\lib\ext\comm.jar
關於javax.comm.properties 的位置 ㄟ..好像是跟程式碼放一起哩...
If you instead got the message “no ports found”, there are a couple of possibilities:
* There actually aren't any serial ports available on your system—either the low-level comm port drivers are not installed right, or other programs have them open. * The javax.comm drivers are not installed properly.
Move the mouse over the words to see the cursor change: 1.Auto 2.Crosshair 3.Default 4.Pointer 5.Move 6.e-resize 7.ne-resize 8.nw-resize 9.n-resize 10.se-resize 11.sw-resize 12.s-resize 13.w-resize 14.text 15.wait 16.help
.click(), .change(). focus(). blur() $('p').click(function() {
$(this).css('background-color', 'red'); }); //Set up paragraphs so that when you click them they turn red.
jQuery('p:first').click(); //觸發click事件
keyup(), .mouseup() 多了鍵值 ('#target').keyup(function(event) {
if (event.keyCode == '13') {
event.preventDefault();
}
xTriggered++;
var msg = 'Handler for .keyup() called ' + xTriggered + ' time(s).';
$.print(msg, 'html');
$.print(event);
});
hover() $("li").hover(
function () {
$(this).append($(" ***"));
},
function () {
$(this).find("span:last").remove();
}
);
var aElement = document.createElement("< a href=javascript:go() >< /a>");
a的href可以直接呼叫javascript的function
//input
var input1 = document.createElement("input"); // create input node
input.type = "checkbox"; // set type, others like text,radio
input.name ="chk"; // set name as its id
1.c#裡的function public void test() { Messagebox.show(""Are you shit on me?"); } 2.加入com 在namespace後的第一行 比public class 更之前 加入 [System.Runtime.InteropServices.ComVisibleAttribute(true)] ex. namespace ezLa { [System.Runtime.InteropServices.ComVisibleAttribute(true)] public partial class ezLa : Form ... }
書籍 1."Don't make me think", Steve Krug (有中文版) 2."Information Architecture for the World Wide Web", Louis Rosenfeld and Peter Morville, O'Reilly (有中文版) 比較理論,教科書 3."Designing Interfaces", Jenifer Tidwell, O'Reilly, 中文:操作介面設計模式 較像工具書,作者提供12心法與94招讓讀者學習
[轉貼的]要在linux下處理.rar檔,需要安裝RAR for Linux,可以從網上下載,但要記住,RAR for Linux 不是免費的;可從http://www.rarsoft.com/download.htm下載RAR for Linux 3.2.0,然後安裝: # tar -xzpvf rarlinux-3.2.0.tar.gz # cd rar # make 這樣就安裝好了,安裝後就有了rar和unrar這兩個程式,rar是壓縮程式,unrar是解壓程式。它們的參數選項很多,這裏只做簡單介紹,依舊舉例說明一下其用法: # rar a all *.jpg 這條命令是將所有.jpg的檔壓縮成一個rar包,名為all.rar,該程式會將.rar 副檔名將自動附加到包名後。 # unrar e all.rar 這條命令是將all.rar中的所有檔解壓出來
This is a little guide on how to use the Google Weather API
Use this XML file for output in Fahrenheit: http://www.google.com/ig/api?weather=Drammen //華氏 (ex. Taipei) And this one for Celsius: http://www.google.co.uk/ig/api?weather=Drammen //攝氏 (ex. Taipei)
And here is the sample C# parser (Celsius Version):using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Net;
///Code by Roman Alifanov - API by Google ///Posted on http://animaonline.blogspot.com namespace GoogleWeatherAPI_Parser { class Program { staticvoid Main(string[] args) { int i = 0;