上一页 1 ··· 8 9 10 11 12 13 下一页
摘要: 1. 在项目中安装 npm install react-intl --save 2.兼容Safari各个版本需要安装intl npm install intl --save 3.编写语言包 1.)新建 en_US.js const = en_US = { hello: "Hello world !" 阅读全文
posted @ 2018-01-11 14:28 大耳朵小虎 阅读(244) 评论(0) 推荐(0) 编辑
摘要: PC: antd(蚂蚁金服)https://ant.design/index-cn 移动: mobile-antd(蚂蚁金服)https://mobile.ant.design 1. react-lazyimg-component (关于img动画效果,摘自:http://react-china.o 阅读全文
posted @ 2018-01-11 14:10 大耳朵小虎 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 1.函数 preventBackgroundScroll(e: React.WheelEvent<HTMLDivElement>){ const target = e.currentTarget if ((e.deltaY < 0 && target.scrollTop <= 0) ||(e.del 阅读全文
posted @ 2018-01-11 14:05 大耳朵小虎 阅读(132) 评论(1) 推荐(0) 编辑
摘要: jQuery 1. 引入 <script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script> 2.事件选择器 $('.btn').click(function(){ if ($('.input-code').val() == "" 阅读全文
posted @ 2018-01-11 14:02 大耳朵小虎 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1.申明函数: function preventBackgroundScroll(e: React.WheelEvent){ const target = e.currentTarget if ( (e.deltaY 0 && target.scrollHeight target.clientHei 阅读全文
posted @ 2018-01-10 18:39 大耳朵小虎 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1.首选通过npm安装jquery? 2.在build/webpack.base.conf文件当中引入jquery module.exports = { ... resolve: { extensions: ['.js', '.vue', '.json'], alias: { 'vue$': 'vu 阅读全文
posted @ 2017-09-05 20:51 大耳朵小虎 阅读(261) 评论(0) 推荐(0) 编辑
摘要: jQuery 常见类库 1. jQuery 1. ExtJS 1. AngularJs 1. prototype.js 1. React.js 1. Vue.js ...... jQuery版本 1. 正式版发布于2016/6/9 不支持IE 6 9 精简版不提供ajax模块 jQuery基础 1. 阅读全文
posted @ 2017-06-24 16:17 大耳朵小虎 阅读(131) 评论(0) 推荐(0) 编辑
摘要: document.documentElement.clientWidth 获取浏览器窗口文档显示区域的宽度,不包括滚动条。 document.documentElement.clientHeight 获取浏览器窗口文档显示区域的高度,不包括滚动条。 浏览器兼容性 所有浏览器解释都一样。 docume 阅读全文
posted @ 2017-06-14 18:48 大耳朵小虎 阅读(2393) 评论(0) 推荐(1) 编辑
摘要: Object 定义: 1. 世间万物都可以用对象表示 1. 基于对象的编程语言中,用对象给真实的事物建模 特点: 1. 对象是JS中的一种数据类型 1. 是一种复合值,他将很多值聚合在一起,可以通过名字访问这些值 1. 对象可以看着值的无序集合 1. 对象的其它叫法:散列 散列表 字典 关联数组 1 阅读全文
posted @ 2017-06-03 20:35 大耳朵小虎 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Array 概念特点 1. 值的有序集合; 1. 每一个值叫一个元素; 1. 每个元素在数组中有一个位置,以数字表示,称为索引(下标); 1. 元素可以是任何类型 1. 索引从0开始,最大为2的32次方 数组的创建 1. 数组直接量 var arr = [2,3,4]; 1. 使用构造函数 var 阅读全文
posted @ 2017-06-03 19:51 大耳朵小虎 阅读(134) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 下一页