摘要: <!DOCTYPE html><html lang="zn"><head> <meta charset="UTF-8"> <title>Document</title></head><body> <!-- 总结关于input和change事件 onchange:change事件发生在input值发生 阅读全文
posted @ 2017-12-25 19:32 smallfishwantosea 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 首先addEventListener得API capture: Boolean,表示 listener 会在该类型的事件捕获阶段传播到该 EventTarget 时触发。 once: Boolean,表示 listener 在添加之后最多只调用一次。如果是 true, listener 会在其被调用 阅读全文
posted @ 2017-11-29 23:28 smallfishwantosea 阅读(11192) 评论(0) 推荐(0) 编辑
摘要: 首先,你要明白,这只是一个警告,不是错误,所以你改不改都不会有影响,除非你和我一样,有代码洁癖 你只有依赖安装在合适的版本才能解决这个问题,你的依赖在 阅读全文
posted @ 2017-11-07 20:51 smallfishwantosea 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 关于在create-react-app 的reacte脚手架报这个错的解决方法 NMET PEER DEPENDENCY react@16.0.0 react-router@2.8.1 requires a peer of react@^0.14.0 || ^15.0.0 but none was 阅读全文
posted @ 2017-11-06 18:02 smallfishwantosea 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 在canvas标签中,如果你用css给canvas设置宽度和高度时,是无效的,所以你必须用行内样式去设置canvas的长和宽 阅读全文
posted @ 2017-08-02 18:15 smallfishwantosea 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 当提交表单时,会发生 submit 事件。 该事件只适用于 <form> 元素。 submit() 方法触发 submit 事件,或规定当发生 submit 事件时运行的函数。 阅读全文
posted @ 2017-08-01 16:57 smallfishwantosea 阅读(154) 评论(0) 推荐(0) 编辑