
typescript
文章平均质量分 82
j_bleach
<script>window.alert("xss")</script>
展开
-
css-vars-ponyfill 在ie环境下使用问题(nextjs 构建)
function ChildContent({ children }: contentType) { const childNumber: number = Children.count(children) console.log('child', children) const cloneEl = (c: ReactElement) => React.cloneElement(c, { onClick: () => { console.log(888) } })原创 2020-12-13 17:34:40 · 1088 阅读 · 2 评论 -
tslint pre-commit 配置教程
tslint 配合pre-commit的意义为什么用pre-commit 加 tslint(jshint,eslint原理都类似),因为在项目中我们会经常忘记主动的去做代码检查,虽然结合webpack各种构建工具下,存在*slint报错,项目会跑不起来。但在某些情况下,可能会因为着急,或者其他原因,没有去观察项目运行的情况就仓促提交。团队开发的情景下,可能会成为别人的麻烦。而pre-commit t原创 2017-10-22 13:38:40 · 2292 阅读 · 0 评论