- 博客(2)
- 资源 (6)
- 收藏
- 关注
原创 Typescript 报“string”类型不能用于索引类型的错误
使用typescript来进行类型定义和约束时,经常会出现类似报错:元素隐式具有“any”类型,因为“string”类型的表达式不能用于索引类型;如:定义一个请求方式与对应的className的字典映射const methodMap = { GET: style["get"], POST: style["post"], PUT: style["put"], PATCH: style["patch"], DELETE: style["delete"]
2022-02-28 14:55:13
11399
1
原创 animate js动画函数
function animate(obj,targetJSON,time,callback){ var interval = 10; if(window.navigator.userAgent.indexOf("MSIE") != -1){ interval = 50; } var semophorJSON = {}; for(var k ...
2019-02-15 14:21:53
6962
开心消消乐-原生JS + canvas实现版
2019-06-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人