-
# Fetch & POST & JSON Server
> before
![](https://images2018.cnblogs.com/blog/740516/201808/740516-20180831104436007-2061988600.png)
> after
![](https://images2018.cnblogs.com/blog/740…
-
# no `for` & create Array 100
```js
new Uint8Array(100).map((item, i) => (item = i));
// Uint8Array(100) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,…
-
# React & event-pooling & bug
> event-pooling
https://reactjs.org/docs/events.html#event-pooling
https://reactjs.org/docs/events.html#mouse-events
https://reactjs.org/docs/events.html#form-eve…
-
# js & right click menu
https://stackoverflow.com/questions/4909167/how-to-add-a-custom-right-click-menu-to-a-webpage
```js
// todo
```
## tutorials
https://www.sitepoint.com/bui…
-
# parse XML & js
> how to parse xml data in js?
https://stackoverflow.com/questions/17604071/parse-xml-using-javascript
https://stackoverflow.com/questions/7949752/cross-browser-javascript-xml…
-
# destroy vue instance?
https://codingexplained.com/coding/front-end/vue-js/destroying-vue-instance
## `vm.$destroy()`
https://vuejs.org/v2/api/#vm-destroy
https://vuejs.org/v2/guide/ins…
-
# vue 2.x api & basic demos
https://vuejs.org/v2/api/index.html#v-on
```vue
```
***
http://www.runoob.com/vue2/vue-start.html
https://cli.vuejs.org/config/#baseurl
https://www.n…
-
# HTML5 drag & drop
> how to detect cursor position in js?
https://javascript.info/mouse-drag-and-drop
-
https://github.com/xgqfrms/GraphQL-API/wiki/GraphQL-API
https://github.com/xgqfrms/GraphQL-API/blob/master/API-keys.md
-
# How to use a variable in replace function of JavaScript ?
> variable & replace & JavaScript
https://stackoverflow.com/questions/10136097/mystring-replace-variable-but-globally
```js
le…