react项目中的注意点

摘要: 一、ES6 的编译方法 目前主流的浏览器还不支持ES6。 现在一般采用webpack 和 <script type="text/babel">对jsx 语法进行编译,编译成正常的js语言。type='text/babel' 这个是引用babel.js库。 二、react 中有个PropTypes 在 阅读全文
posted @ 2017-05-11 14:42 zkBlog 阅读(109) 评论(0) 推荐(0)

js中的正则表达式

摘要: 一、正则表达式中/i,/g,/ig,/gi,/m 的区别和含义 /i (忽略大小写) /g (全文查找出现的所有匹配字符) /m (多行查找) /gi(全文查找、忽略大小写) /ig(全文查找、忽略大小写) 阅读全文
posted @ 2017-05-11 14:42 zkBlog 阅读(69) 评论(0) 推荐(0)

CommonJS 与AMD 、CMD 的区别

摘要: CommonJS是一种规范,是一种模块化的规范。它有一个全局方法require(),用于加载模块。 CommonJS 定义的模块分为:{模块引用(require)}{模块定义(exports)} {模块标识(module)} require()用来引入外部模块;exports 对象用于当前模块的方法 阅读全文
posted @ 2017-05-11 14:41 zkBlog 阅读(84) 评论(0) 推荐(0)

react native与原生的交互

摘要: 一、交互依赖的重要组件 react native 中如果想要调用ios 中相关的方法,必须依赖一个重要的组件nativemodules 二、调用的方法 阅读全文
posted @ 2017-05-11 14:40 zkBlog 阅读(139) 评论(0) 推荐(0)

解决IE8及以下版本不支持CSS3的nth-child()的写法

摘要: :nth-child() 选择器的使用方法和 CSS3 的:nth-child()没什么两样,兼容性不必担心。 :nth-child(odd)用于匹配奇数子元素 :nth-child(even)用于匹配偶数子元素 :nth-child(n)用于匹配第n个元素 :nth-child(an)用于匹配倍数 阅读全文
posted @ 2016-10-11 14:58 zkBlog 阅读(203) 评论(0) 推荐(0)

css input 如何去掉点击后出现的边框

摘要: *:focus { outline: none; } 或 input {outline:none;} 阅读全文
posted @ 2016-10-09 11:27 zkBlog 阅读(93) 评论(0) 推荐(0)

input 属性

摘要: placeholder="" 提示文字 http://www.w3chtml.com/html5/tag/input.html 规定可通过文件上传控件提交的文件类型。 (仅适用于 type="file") 规定图像输入控件的替代文本。 (仅适用于 type="image") on off 规定输入字 阅读全文
posted @ 2016-10-09 11:22 zkBlog 阅读(132) 评论(0) 推荐(0)

整理易忘知识点

摘要: overflow: hidden; text-overflow:ellipsis; white-space: nowrap;1、单行文本的溢出显示省略号 阅读全文
posted @ 2016-10-08 15:17 zkBlog 阅读(91) 评论(0) 推荐(0)

菜单固定导航

摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or 阅读全文
posted @ 2016-10-08 15:15 zkBlog 阅读(124) 评论(0) 推荐(0)

iphone开机动画

摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> body{ background: black; font:40px/200px 阅读全文
posted @ 2016-06-17 16:09 zkBlog 阅读(548) 评论(0) 推荐(0)