https://jsfiddle.net/2seepb9L/1/
- 簡単なDOM操作
- getElementById
- getElementsByClassName
- getElementsByTagName
- querySelector(All)
| <?php | |
| /** | |
| * Template Name: Lettering Archives | |
| * Description: Used as a page template to show page contents, followed by a loop through a CPT archive | |
| */ | |
| remove_action ('genesis_loop', 'genesis_do_loop'); // Remove the standard loop | |
| add_action( 'genesis_loop', 'custom_lettering_archive_template' ); // Add custom loop |
| var a = function() { | |
| console.log(this); | |
| }; | |
| // unwrapped | |
| console.log(this); // window | |
| // free function invocation | |
| a(); // window |
https://jsfiddle.net/2seepb9L/1/
https://jsfiddle.net/5gge1ds5/
Take a look:
var a = 'hello';
var b = a;
a = 'world';
console.log(b); // what does this log?