- 72 名前:デフォルトの名無しさん mailto:sage [04/12/11 03:16:44]
- >>70
instanceof 構文で出来るよ。 var channel = ioService.newChannel("www.example.com/", null, null); alert(channel instanceof Components.interfaces.nsIHttpChannel); // おそらく true alert(channel instanceof Components.interfaces.nsIFTPChannel); // おそらく false var channel = ioService.newChannel("ftp://ftp.example.com/", null, null); alert(channel instanceof Components.interfaces.nsIHttpChannel) // おそらく false alert(channel instanceof Components.interfaces.nsIFTPChannel) // おそらく true
|

|