Created
March 18, 2020 15:17
-
-
Save CarterTsai/3156ed8bedc962d76b893d5636f48590 to your computer and use it in GitHub Desktop.
test_es6_on_ie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.8.7/polyfill.js"></script> | |
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> | |
</head> | |
<body> | |
<div class="hello"> | |
</div> | |
</body> | |
<script type="text/babel"> | |
(function(){ | |
var func = () => { foo: 1 }; | |
var x = document.querySelector(".hello"); | |
x.innerHTML=`<h1>Hello</h1>`; | |
})() | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment