码迷,mamicode.com
首页 > 其他好文 > 详细

[ES6] 20. Polyfills

时间:2015-04-29 07:06:33      阅读:131      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!