本月博客排行
-
第1名
龙儿筝 -
第2名
lerf -
第3名
fantaxy025025 - johnsmith9th
- zysnba
- xiangjie88
年度博客排行
-
第1名
青否云后端云 -
第2名
宏天软件 -
第3名
gashero - wy_19921005
- vipbooks
- benladeng5225
- e_e
- wallimn
- javashop
- ranbuijj
- fantaxy025025
- jickcai
- gengyun12
- zw7534313
- qepwqnp
- 解宜然
- ssydxa219
- zysnba
- sam123456gz
- sichunli_030
- tanling8334
- arpenker
- gaojingsong
- kaizi1992
- xpenxpen
- 龙儿筝
- jh108020
- wiseboyloves
- ganxueyun
- xyuma
- xiangjie88
- wangchen.ily
- Jameslyy
- luxurioust
- mengjichen
- lemonhandsome
- jbosscn
- zxq_2017
- lzyfn123
- nychen2000
- forestqqqq
- wjianwei666
- ajinn
- zhanjia
- siemens800
- Xeden
- hanbaohong
- java-007
- 喧嚣求静
- mwhgJava
最新文章列表
ESLint: elements with click handlers must have at least one keyboard listener.
ESLint: Visible, non-interactive elements with click handlers must have at least one keyboard listener. (jsx-a11y/click-events-have-key)
由于ESLint检查强制非Button的 onClick 事件需要至少一个键盘事件。
键盘事件:
onKeyUp ...
Access to XMLHttpRequest has been blocked by CORS policy: Request header field l
问题报错:
Access to XMLHttpRequest at 'http://localhost:3030/api/asset-list' from origin 'http://localhost:3000' has been blocked by CORS policy: Request header field lang is not allowed by Access-Contro ...
Fetch API Error: Body not allowed for GET or HEAD requests with UUID
报错说明:
bog.js:35 [ERROR] [2018.10.24 10:58:47] 127.0.0.1 [uuid] [thread] [class] - API Error: Body not allowed for GET or HEAD requests with UUID: 49ece288-7a32-4cbe-a421-1439f8ff3f6b when calling /x ...
npm node-gyp rebuild - Error: `gyp` failed with exit code: 1
报错内容可能不一样:
gyp: Call to './util/has_lib.sh freetype' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with ...
Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tai
Js Canvas画图加载远程连接报错:
Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
报错Screenshot
尽管没有CORS授权也可以在 canvas 中使用图像, 但这样做就会污染(tain ...
Css translate3d 文字模糊的bug,解决之道
问题原因:
css transform translate3d导致字体模糊,目前已知bug,chrome暂未解决
当元素进入GPU中渲染时,在Chrome35+中的字体为grayscale渲染,IE11和FF30保持sub-pixel渲染不变。若transform值函数(如translate3d(), scale(), rotate()等)中的参数为非整数,会导致字体模糊。
例如:t ...
Js设置前端允许跨域请求后端API:Access-Control-Allow-Credentials
跨域报错信息:
Fetch API cannot load https://xxx.com/api. Response to preflight
request doesn't pass access control check:
The value of the 'Access-Control-Allow-Credentials' header
in the response i ...
Module build failed: Error: ENOENT: no such file or directory, scandir node-sass
报错内容:
Module build failed: Error: ENOENT: no such file or directory, scandir '***/node_modules/.npminstall/node-sass/4.5.3/node-sass/vendor'
解决方案:
// 使用 npm命令重新编译node-sass
$ npm rebui ...