Enviar pesquisa
Carregar
Query selecterの話
•
0 gostou
•
291 visualizações
Kazuyuki CHINDA
Seguir
2017/06/01 aiming 基盤チーム LT
Leia menos
Leia mais
Tecnologia
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 19
Baixar agora
Baixar para ler offline
Recomendados
Acórdão ccz
Acórdão ccz
Luiz Fernando Góes Ulysséa
Acórdão ccz
Acórdão ccz
Luiz Fernando Góes Ulysséa
Lavoro html
Lavoro html
Roberta Pizzi
Session3 part2
Session3 part2
sangkeetwittaya stourajini
Second raidteam.html
Second raidteam.html
Craig Farish
Bca sem 6 php practicals 1to12
Bca sem 6 php practicals 1to12
Hitesh Patel
Railway res form
Railway res form
suma Latha
Index css history
Index css history
Gaejang Guk
Recomendados
Acórdão ccz
Acórdão ccz
Luiz Fernando Góes Ulysséa
Acórdão ccz
Acórdão ccz
Luiz Fernando Góes Ulysséa
Lavoro html
Lavoro html
Roberta Pizzi
Session3 part2
Session3 part2
sangkeetwittaya stourajini
Second raidteam.html
Second raidteam.html
Craig Farish
Bca sem 6 php practicals 1to12
Bca sem 6 php practicals 1to12
Hitesh Patel
Railway res form
Railway res form
suma Latha
Index css history
Index css history
Gaejang Guk
Your Custom WordPress Admin Pages Suck
Your Custom WordPress Admin Pages Suck
Anthony Montalbano
Web I - 03 - Tables
Web I - 03 - Tables
Randy Connolly
Lecture 5 html table
Lecture 5 html table
AliMUSSA3
Caracteristicas Basicas De Htlm
Caracteristicas Basicas De Htlm
Maria S Rivera
html file
html file
Pooja Sharma
Vaadin Components @ Angular U
Vaadin Components @ Angular U
Joonas Lehtinen
3.1 html lec 3
3.1 html lec 3
IoT Code Lab
Side by Side - Scala and Java Adaptations of Martin Fowler’s Javascript Refac...
Side by Side - Scala and Java Adaptations of Martin Fowler’s Javascript Refac...
Philip Schwarz
01 HTML-Tables-1.pptx
01 HTML-Tables-1.pptx
AhmedAlmughalis1
R and data mining
R and data mining
Chaozhong Yang
Lecture-4.pptx
Lecture-4.pptx
vishal choudhary
Theme
Theme
guest4c338112
Html
Html
samanbandaraherath
Automated Frontend Testing
Automated Frontend Testing
Neil Crosby
table html web programing
table html web programing
lodhran-hayat
Gsp53 1
Gsp53 1
ครูสุชาติ ขุนฤทธิ์เอียด
Practical file(XHTML)web designing
Practical file(XHTML)web designing
ArtiSolanki5
From typing the test to testing the type
From typing the test to testing the type
Wim Godden
Html file
Html file
Pawan Mishra
Introduction to Template::Toolkit
Introduction to Template::Toolkit
duncanmg
Introduction fasttext
Introduction fasttext
Kazuyuki CHINDA
仮想電子工作のすすめ
仮想電子工作のすすめ
Kazuyuki CHINDA
Mais conteúdo relacionado
Semelhante a Query selecterの話
Your Custom WordPress Admin Pages Suck
Your Custom WordPress Admin Pages Suck
Anthony Montalbano
Web I - 03 - Tables
Web I - 03 - Tables
Randy Connolly
Lecture 5 html table
Lecture 5 html table
AliMUSSA3
Caracteristicas Basicas De Htlm
Caracteristicas Basicas De Htlm
Maria S Rivera
html file
html file
Pooja Sharma
Vaadin Components @ Angular U
Vaadin Components @ Angular U
Joonas Lehtinen
3.1 html lec 3
3.1 html lec 3
IoT Code Lab
Side by Side - Scala and Java Adaptations of Martin Fowler’s Javascript Refac...
Side by Side - Scala and Java Adaptations of Martin Fowler’s Javascript Refac...
Philip Schwarz
01 HTML-Tables-1.pptx
01 HTML-Tables-1.pptx
AhmedAlmughalis1
R and data mining
R and data mining
Chaozhong Yang
Lecture-4.pptx
Lecture-4.pptx
vishal choudhary
Theme
Theme
guest4c338112
Html
Html
samanbandaraherath
Automated Frontend Testing
Automated Frontend Testing
Neil Crosby
table html web programing
table html web programing
lodhran-hayat
Gsp53 1
Gsp53 1
ครูสุชาติ ขุนฤทธิ์เอียด
Practical file(XHTML)web designing
Practical file(XHTML)web designing
ArtiSolanki5
From typing the test to testing the type
From typing the test to testing the type
Wim Godden
Html file
Html file
Pawan Mishra
Introduction to Template::Toolkit
Introduction to Template::Toolkit
duncanmg
Semelhante a Query selecterの話
(20)
Your Custom WordPress Admin Pages Suck
Your Custom WordPress Admin Pages Suck
Web I - 03 - Tables
Web I - 03 - Tables
Lecture 5 html table
Lecture 5 html table
Caracteristicas Basicas De Htlm
Caracteristicas Basicas De Htlm
html file
html file
Vaadin Components @ Angular U
Vaadin Components @ Angular U
3.1 html lec 3
3.1 html lec 3
Side by Side - Scala and Java Adaptations of Martin Fowler’s Javascript Refac...
Side by Side - Scala and Java Adaptations of Martin Fowler’s Javascript Refac...
01 HTML-Tables-1.pptx
01 HTML-Tables-1.pptx
R and data mining
R and data mining
Lecture-4.pptx
Lecture-4.pptx
Theme
Theme
Html
Html
Automated Frontend Testing
Automated Frontend Testing
table html web programing
table html web programing
Gsp53 1
Gsp53 1
Practical file(XHTML)web designing
Practical file(XHTML)web designing
From typing the test to testing the type
From typing the test to testing the type
Html file
Html file
Introduction to Template::Toolkit
Introduction to Template::Toolkit
Mais de Kazuyuki CHINDA
Introduction fasttext
Introduction fasttext
Kazuyuki CHINDA
仮想電子工作のすすめ
仮想電子工作のすすめ
Kazuyuki CHINDA
ウェブエンジニアのための色の話
ウェブエンジニアのための色の話
Kazuyuki CHINDA
Shinjuku.html5.lunch #11
Shinjuku.html5.lunch #11
Kazuyuki CHINDA
時間をかけて解く FizzBuzz
時間をかけて解く FizzBuzz
Kazuyuki CHINDA
typo の傾向と対策
typo の傾向と対策
Kazuyuki CHINDA
エンジニアのためのUX入門
エンジニアのためのUX入門
Kazuyuki CHINDA
Mais de Kazuyuki CHINDA
(7)
Introduction fasttext
Introduction fasttext
仮想電子工作のすすめ
仮想電子工作のすすめ
ウェブエンジニアのための色の話
ウェブエンジニアのための色の話
Shinjuku.html5.lunch #11
Shinjuku.html5.lunch #11
時間をかけて解く FizzBuzz
時間をかけて解く FizzBuzz
typo の傾向と対策
typo の傾向と対策
エンジニアのためのUX入門
エンジニアのためのUX入門
Último
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Deepika Singh
Elevate Developer Efficiency & build GenAI Application with Amazon Q
Elevate Developer Efficiency & build GenAI Application with Amazon Q
Bhuvaneswari Subramani
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Orbitshub
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
UiPathCommunity
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
MadyBayot
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Remote DBA Services
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
Dropbox
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
The Digital Insurer
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Khushali Kathiriya
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
DianaGray10
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
apidays
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Zilliz
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
apidays
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
WSO2
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Orbitshub
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
Último
(20)
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Elevate Developer Efficiency & build GenAI Application with Amazon Q
Elevate Developer Efficiency & build GenAI Application with Amazon Q
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Query selecterの話
1.
jQuery Javascript CSS selector 2017/06/01
LT
2.
5
3.
<table id="score"> <thead> <tr> <th>Test <th>Result <tfoot> <tr> <th>Average <td>?? <tbody> <tr> <td>A <td>87% <tr> <td>B <td>78% <tr> <td>Z <td>81% </table> Test Result Average ?? A
87% B 78% ... ... Z 81%
4.
<table id="score"> <thead> <tr> <th>Test <th>Result <tfoot> <tr> <th>Average <td>?? <tbody> <tr> <td>A <td>87% <tr> <td>B <td>78% <tr> <td>Z <td>81% </table> Test Result Average ?? A
87% B 78% ... ... Z 81% chrome console ↑
5.
<table id="score"> <thead> <tr> <th>Test <th>Result <tfoot> <tr> <th>Average <td>?? <tbody> <tr> <td>A <td>87% <tr> <td>B <td>78% <tr> <td>C <td>81% </table> var table = document.getElementById("score"); var groups = table.tBodies; var rows = null; var cells = []; for (var i = 0; i < groups.length; i++) { rows = groups[i].rows; for (var j = 0; j < rows.length; j++) { cells.push(rows[j].cells[1]); } } console.log(cells); > (3) [td, td, td] Pure Javascript
6.
jQuery > jQuery("#score > tbody > tr td:nth‐of‐type(2)") >> (3) [td, td, td, prevObject: r.fn.init(1)] > jQuery("#score > tbody > tr td:nth‐of‐type(2)").text() >> "87% >> 78% >> 81% >> " ※ #score > tbody > tr td + td OK var _j = document.createElement('script'); _j.src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery. document.body.appendChild(_j);
7.
jQuery
8.
XPath !!!
9.
XML Path Language
(XPath) => https://www.w3.org/TR/xpath/
10.
XPath > $x('//table/tbody/tr/td[count(preceding‐sibling::td) = 1]') >> (3) [td, td, td] > $x('//table/tbody/tr/td[count(preceding‐sibling::td) = 1]')[0 >> <td> 87% >> </td>
11.
CSS selector ... jQue..
12.
Selectors API by
W3C http://www.w3.org/TR/2013/REC‑selectors‑api‑20130221/ Previous Versions: http://www.w3.org/TR/2012/PR‑selectors‑api‑20121213/ http://www.w3.org/TR/2012/WD‑selectors‑api‑20120628/ http://www.w3.org/TR/2009/CR‑selectors‑api‑20091222/ http://www.w3.org/TR/2008/WD‑selectors‑api‑20081114/ http://www.w3.org/TR/2007/WD‑selectors‑api‑20071221/ http://www.w3.org/TR/2007/WD‑selectors‑api‑20071019/ http://www.w3.org/TR/2006/WD‑selectors‑api‑20060926/ http://www.w3.org/TR/2006/WD‑selectors‑api‑20060525/
13.
Selectors API partial interface Document { Element? querySelector(DOMString selectors); NodeList querySelectorAll(DOMString selectors); }; partial interface DocumentFragment { Element? querySelector(DOMString selectors); NodeList querySelectorAll(DOMString selectors); }; partial interface Element { Element? querySelector(DOMString selectors); NodeList querySelectorAll(DOMString selectors); };
14.
Selectors API Element.querySelectorAll(DOMString selectors); ↑ CSS
selectors https://www.w3.org/TR/css3‑selectors/
15.
querySelectorAll() > document.querySelectorAll('#score > tbody > tr td:nth‐of‐type(2)' >> (3) [td, td, td] > document.querySelectorAll('#score > tbody > tr td:nth‐of‐type(2)' >> <td> 87% >> </td>
16.
querySelectorAll() jQuery > jQuery("#score > tbody > tr td:nth‐of‐type(2)") >> (3) [td, td, td, prevObject: r.fn.init(1)] > document .querySelectorAll('#score > tbody > tr td:nth‐of‐type(2)') >> (3) [td, td, td]
17.
document.querySelectorAll('table, input:checked')
18.
jQuery 1. getElementById() 2. querySelectorAll() 3.
sizzle jQuery
Baixar agora