会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
0恋晨曦0
CnBlogs
Home
New Post
Contact
Admin
Subscription
上一页
1
2
3
4
5
下一页
2018年9月4日
乱七八糟的知识点和一些面试题
通用面试题目 深入浅出妙用 Javascript 中 apply、call、bind 1.任何对象都有属性,但只有DOM对象才有属性节点(attributes); 2、行内元素(display: inline)的height、width、内/外边距的bottom、top(padding-top、pa
Read More
posted @ 2018-09-04 10:20 0恋晨曦0
Views(188)
Comments(0)
Diggs(0)
2018年8月17日
jQuery 学习笔记(5)(事件绑定与解绑、事件冒泡与事件默认行为、事件的自动触发、自定义事件、事件命名空间、事件委托、移入移出事件)
1、事件绑定: .eventName(fn) //编码效率略高,但部分事件jQuery没有实现 .on(eventName, fn) //编码效率略低,所有事件均可以添加 注意点:可以同时添加多个相同或不同类型的事件 2、事件解除 .off() 不传参数: $('button').off() //解
Read More
posted @ 2018-08-17 20:18 0恋晨曦0
Views(132)
Comments(0)
Diggs(0)
2018年8月16日
jQuery 学习笔记(4)(文本值相关方法、操控CSS方法、位置和尺寸方法)
1、文本值相关方法 .html() == .innerHTML $("div").html("<span> 。。。</span>") //设置HTML代码片段 $("div").html() //获取HTML代码片段 .text == .innerText $("div").text("。。。")
Read More
posted @ 2018-08-16 23:41 0恋晨曦0
Views(187)
Comments(0)
Diggs(0)
2018年8月15日
jQuery 学习笔记(3)(内容选择器、attr方法、prop方法,类的操作)
内容选择器: 1、$("div:empty"): 空的div元素 2、$("div:parent"): 非空div元素 3、$("div:contains(text)"): 包含 text 文本(指定文本)的div元素 4、$("div:has('span')"): 包含span元素(指定子元素)的
Read More
posted @ 2018-08-15 17:19 0恋晨曦0
Views(406)
Comments(0)
Diggs(0)
jQuery 学习笔记(2)(jQuery静态方法)
jQuery静态方法 1、$.each() 和 $.map() 既可以遍历数组也可以遍历伪数组 $.each(arr, function(value, index) { ... } ) $.map(arr, function(value, index) { ... } ) 不同点:$.each()
Read More
posted @ 2018-08-15 16:16 0恋晨曦0
Views(117)
Comments(0)
Diggs(0)
2018年8月14日
jQuery 学习笔记(1)
1、jQuery入口函数相比原生的入口函数 window.onload = function() { ... } //当DOM和图片都加载完毕后执行 $(document).ready(function() { ... }) //当DOM加载完毕执行 2、jQuery入口函数重复执行不会被覆盖 wi
Read More
posted @ 2018-08-14 22:21 0恋晨曦0
Views(125)
Comments(0)
Diggs(0)
2018年8月13日
XHTML
1、元素必须被正确地嵌套。 2、元素必须被关闭。(非空标签必须使用结束标签,空标签也必须被关闭) 3、标签名必须用小写字母。(标签名和属性对大小写敏感) 4、XHTML 文档必须拥有根元素。 属性名称必须小写 属性值必须加引号 属性不能简写 用 Id 属性代替 name 属性 XHTML DTD 定
Read More
posted @ 2018-08-13 22:07 0恋晨曦0
Views(1008)
Comments(0)
Diggs(0)
2018年8月9日
JavaScript、关于元素的offset~和client~
1、偏移量(offset dimension) =>offsetTop =>offsetWidth(元素的宽度/高度,包括元素的内容、内边距和边框) =>offsetHeight =>offsetParent(元素的父元素) 2、客户区的大小(client dimension) =>clientWi
Read More
posted @ 2018-08-09 17:27 0恋晨曦0
Views(145)
Comments(0)
Diggs(0)
IE报错:[vuex] vuex requires a Promise polyfill in this browser.
使用的是vue2.0版本 IE报错提醒: 导致原因:使用了 ES6 中用来传递异步消息的的Promise,而IE的浏览器不支持 解决办法: 1、安装babel-polyfill模块,babel-ployfill模块可以模拟ES6的使用环境 npm install babel-ployfill --s
Read More
posted @ 2018-08-09 16:42 0恋晨曦0
Views(104)
Comments(0)
Diggs(0)
Vue项目
1、新建Vue项目:vue init webpack projectName 2、vue-router模块 1、安装vue-router模块:npm install vue-router --save-dev 2、在src文件夹下新建文件夹router继续新建文件index.js 编辑index.j
Read More
posted @ 2018-08-09 16:33 0恋晨曦0
Views(167)
Comments(0)
Diggs(0)
上一页
1
2
3
4
5
下一页
公告