Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
soraly committed Mar 28, 2019
1 parent 5ccecba commit 0bf4a61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/symbol/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
console.log(s1 == s2); // ==> false

var obj = {name:'xiang',[s1]:'lzx'};
console.log(Object.keys(obj)); //==> ['name'] for in循环和keys都不能遍历出symbol类型的key
console.log(Object.keys(obj)); //==> ['name'] for in循环和keys都不能遍历出symbol类型的key



</script>
</body>
</html>

0 comments on commit 0bf4a61

Please sign in to comment.