[JavaScript,PHP] スクリプト言語33 [Perl,Python]at TECH[JavaScript,PHP] スクリプト言語33 [Perl,Python] - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト400:デフォルトの名無しさん 13/05/04 01:04:18.51 >>398 > あの簡素で柔軟なインターフェースは静的言語では困難って話をしてるんだけど 具体的には? 401:デフォルトの名無しさん 13/05/04 01:04:39.83 >>396 プラグインAでjQueryにメソッドをはやしてから 別名変数にクローンを保存 ブラグインBでjQueryのメソッドを上書き 余裕 402:デフォルトの名無しさん 13/05/04 01:05:30.54 https://code.google.com/p/joox/ // Parse the document from a file Document document = $(xmlFile).document(); // Wrap the document with the jOOX API Match x1 = $(document); // This will get all books (wrapped <book/> DOM Elements) Match x2 = $(document).find("book"); // This will get all even or odd books Match x3 = $(document).find("book").filter(even()); Match x4 = $(document).find("book").filter(odd()); // This will get all book ID's List<String> ids = $(document).find("book").ids(); // This will get all books with ID = 1 or ID = 2 Match x5 = $(document).find("book").filter(ids(1, 2)); // Or, use css-selector syntax: Match x6 = $(document).find("book#1, book#2"); // This will use XPath to find books with ID = 1 or ID = 2 Match x7 = $(document).xpath("//book[@id = 1 or @id = 2]"); 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch