Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});
// It is important to declare your variables. | |
(function() { | |
var foo = 'Hello, world!'; | |
print(foo); //=> Hello, world! | |
})(); | |
// Because if you don't, the become global variables. | |
(function() { |
last 3 versions | |
not Explorer < 11 | |
not ExplorerMobile < 11 |
Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});
// Cross browser, backward compatible solution | |
(function( window, Date ) { | |
// feature testing | |
var raf = window.mozRequestAnimationFrame || | |
window.webkitRequestAnimationFrame || | |
window.msRequestAnimationFrame || | |
window.oRequestAnimationFrame; | |
window.animLoop = function( render, element ) { | |
var running, lastFrame = +new Date; |
// INICIO de DOCUMENTO | |
// -------------------- | |
$(document).ready(function() { /* codigo */ }); | |
// ACCESO A ELEMENTODS | |
// ------------------- | |
$(".nav .submenu > div") /**/ $(this) /**/ $('#id') /**/ $('.clase') |
// Promise.all is good for executing many promises at once | |
Promise.all([ | |
promise1, | |
promise2 | |
]); | |
// Promise.resolve is good for wrapping synchronous code | |
Promise.resolve().then(function () { | |
if (somethingIsNotRight()) { | |
throw new Error("I will be rejected asynchronously!"); |
Currently considering https://github.com/webdriverio/webdrivercss
Core Goals:
Currently considering https://github.com/webdriverio/webdrivercss
Core Goals:
Currently considering https://github.com/webdriverio/webdrivercss
Core Goals:
for(var b in window) { | |
if(window.hasOwnProperty(b)) console.log(b); | |
} |