随笔分类 -  JavaScript

上一页 1 2 3 下一页

轮播图
摘要: 阅读全文

posted @ 2017-02-20 14:37 carlyin 阅读(120) 评论(0) 推荐(0)

弹幕
摘要:--> 打开弹幕 X X 阅读全文

posted @ 2016-11-03 10:16 carlyin 阅读(99) 评论(0) 推荐(0)

web页面启用短信和拨打电话
摘要:1.formart detection未检测出手机号 2.sms启动短信,但未在收信人内填充电话号码; 3.tel启动拨打电话,有号码,正常 阅读全文

posted @ 2016-09-29 10:21 carlyin 阅读(449) 评论(0) 推荐(0)

调用摄像头
摘要:藏的好深 打印window没看到api接口 阅读全文

posted @ 2016-09-29 10:14 carlyin 阅读(281) 评论(0) 推荐(0)

New Object 和Object.create()
摘要:new Object new Object() 构造函数 阅读全文

posted @ 2016-09-20 14:25 carlyin 阅读(188) 评论(0) 推荐(0)

Console.assert 断言
摘要:接受2个参数 第一个参数转换为boolean值为true,什么也不做 第一个参数转换为boolean值为false,assert打印第二个参数的返回值(基本为字符串) 阅读全文

posted @ 2016-09-20 10:04 carlyin 阅读(777) 评论(0) 推荐(0)

瀑布流
摘要:就是利用css3中的column-width规定列的宽度 阅读全文

posted @ 2016-09-19 09:51 carlyin 阅读(104) 评论(0) 推荐(0)

data-* 属性
摘要:取得元素 dataset属性 DOMStringMap Object 包含驼峰变量转换(类似angularjs中的derective名称转换) 阅读全文

posted @ 2016-09-14 15:39 carlyin 阅读(129) 评论(0) 推荐(0)

赞你个大头鬼
摘要:点赞 阅读全文

posted @ 2016-09-09 15:08 carlyin 阅读(110) 评论(0) 推荐(0)

LeetCode #3 Longest Substring Without Repeating Characters
摘要:Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng 阅读全文

posted @ 2016-09-08 11:14 carlyin 阅读(137) 评论(0) 推荐(0)

LeetCode #2 Add Two Numbers
摘要:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single 阅读全文

posted @ 2016-09-07 16:40 carlyin 阅读(131) 评论(0) 推荐(0)

LeetCode #1Two Sum
摘要:Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文

posted @ 2016-09-07 16:17 carlyin 阅读(94) 评论(0) 推荐(0)

考题选项多选问题
摘要:A A.30% B B.30% C C.30% D D... 阅读全文

posted @ 2016-09-01 14:28 carlyin 阅读(113) 评论(0) 推荐(0)

JavaScript语言规范
摘要:块内函数声明 各引擎对于块内函数声明的实现都不一样,和 EcmaScript 的建议相违背。 ECMAScript 只允许在根脚本语句或其他函数中进行函数声明,如果一定要用的话可以在块内用变量来定义函数,防止函数申明提升 基本包装类型 方法定义 True 和 False 布尔表达式 以下的表达式都返 阅读全文

posted @ 2016-08-26 15:49 carlyin 阅读(186) 评论(0) 推荐(0)

Javascript Closures
摘要:Javascript Closures Introduction The Resolution of Property Names on Objects Assignment of Values Reading of Values Identifier Resolution, Execution C 阅读全文

posted @ 2016-08-26 14:50 carlyin 阅读(163) 评论(0) 推荐(0)

评价系统 五星评级
摘要:ES5CMP 阅读全文

posted @ 2016-08-26 11:25 carlyin 阅读(168) 评论(0) 推荐(0)

伪留言系统
摘要:简单弱智没什么卵用的 js代码 阅读全文

posted @ 2016-08-25 13:41 carlyin 阅读(132) 评论(0) 推荐(0)

片尾演职员表 滚动名单
摘要:无聊+蛋疼 阅读全文

posted @ 2016-08-24 16:47 carlyin 阅读(708) 评论(0) 推荐(0)

市县两级select框联动
摘要:1.使用jquery框架简化ajax请求,懒的写XMLHttpRequest源生js 2.实现为二级Object,见city.json文件 HTML: city.json: 全国的city.json库需要完善,三级联动的“省-市-县”需要多添加一层循环,city.json也需要按照解构添加 阅读全文

posted @ 2016-08-24 15:40 carlyin 阅读(271) 评论(0) 推荐(0)

JavaScript分页
摘要:当前页码前后显示 3 页,然后需要显示第一页和最后一页,未显示的页码用省略号表示。 当前页码为 1,那么显示 1 2 3 4 ... 110 下一页 当前页码为 2,那么显示 上一页 1 2 3 4 5 ... 110 下一页 当前页码为 3,那么显示 上一页 1 2 3 4 5 6 ... 110 阅读全文

posted @ 2016-08-19 10:20 carlyin

上一页 1 2 3 下一页

导航