Skip to content

Instantly share code, notes, and snippets.

@fjyuu fjyuu/css-or-find.js
Created Sep 30, 2015

Embed
What would you like to do?
console.time('css');
var a = $('html body form div.mb8p4 div.data_input table tbody tr td div p.font12 a');
console.timeEnd('css');
console.time('find')
var b = $('html')
.find('body')
.find('form')
.find('div.mb8p4')
.find('div.data_input')
.find('table')
.find('tbody')
.find('tr')
.find('td')
.find('div')
.find('p.font12')
.find('a');
console.timeEnd('find');
console.log(a);
console.log(b);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.