mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
docs(regex): edit y flag
This commit is contained in:
+2
-2
@@ -346,8 +346,8 @@ let arr2 = Array.from(arrayLike); // ['a', 'b', 'c']
|
||||
```javascript
|
||||
// NodeList对象
|
||||
let ps = document.querySelectorAll('p');
|
||||
Array.from(ps).forEach(function (p) {
|
||||
console.log(p);
|
||||
Array.from(ps).filter(p => {
|
||||
return p.textContent.length > 100;
|
||||
});
|
||||
|
||||
// arguments对象
|
||||
|
||||
Reference in New Issue
Block a user