首页 > 其他 > 详细

[ES6] 20. Polyfills

时间:2015-04-29 07:04:40      阅读:238      评论:0      收藏:0      [点我收藏+]

Polyfill is something you don‘t need to set up traceur but start to use es6 in today‘s browser.
You can search for polyfill which you want to use on Goolge.

For example: I want to search for es6 array method from [https://github.com/rwaldron/es6-array-extras](https://github.com/rwaldron/es6-array-extras).

Download the js file and include it.

 

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>

<script src="es6-array-extras.js"></script>
<script>
    var ary = Array.of(5);
    console.log(ary);
</script>
</body>
</html>

 

[ES6] 20. Polyfills

原文:http://www.cnblogs.com/Answer1215/p/4464550.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!