correction && add form && add slide && add masonry && css
This commit is contained in:
37
node_modules/ev-emitter/sandbox/1.html
generated
vendored
Normal file
37
node_modules/ev-emitter/sandbox/1.html
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
|
||||
<title>1</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>1</h1>
|
||||
|
||||
<script src="../ev-emitter.js"></script>
|
||||
|
||||
<script>
|
||||
var ee = new EvEmitter;
|
||||
|
||||
var hey = function( a, b, c ) { console.log('hey', a, b, c ) };
|
||||
var ho = function( a, b, c ) { console.log('ho', a, b, c ) };
|
||||
var letsGo = function( a, b, c ) { console.log('lets go', a, b, c ) };
|
||||
|
||||
ee.on( 'foo', hey );
|
||||
ee.once( 'foo', ho );
|
||||
ee.on( 'foo', letsGo );
|
||||
|
||||
ee.emitEvent( 'foo', [ 1, 2, 3 ] );
|
||||
|
||||
ee.off('foo', hey );
|
||||
|
||||
ee.emitEvent( 'foo', [ 4, 5, 6 ] );
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user