Added module example
This commit is contained in:
commit
a3f4ca664f
4 files changed
+46
No files matched your search
@@ -0,0 +1,11 @@
|
||||
|
||||
export function toto(){
|
||||
console.log("say toto");
|
||||
}
|
||||
|
||||
export function hello(){
|
||||
console.log("say hello");
|
||||
}
|
||||
|
||||
document.querySelector('#foo').addEventListener('click', toto);
|
||||
document.querySelector('#foo').addEventListener('click', hello);
|
||||
Reference in new issue
Block a user