lyuan blog

lyuan blog

  • Home
  • Archives
  • About
  • Labs

js promise

Promise/A+ 规范 A promise represents the eventual result of an asynchronous operation. The primary way of interacting with a promise is throu

1月 12 2015

jquery源码学习之数据缓存data

.data API data([key],[value])/ data(obj)参数: key value obj (key-value) .data()方法允许我们在DOM元素上绑定任意类型的数据,避免了循环引用的内存泄漏风险 .data Examples 1234567

1月 11 2015

如何写一个js的模块加载器

module requirejs 实现基础 如何写一个js的模块加载器,类似于requirejs,那么我们首先了解一下requirejs。 requirejs 用法: define(id?, dependencies?, factory); 1、 requirejs预加载。 每个

1月 4 2015

第三方cookie

第三方cookie、P3P 问题 在做外链视频续波功能,发现第三方cookie在IE下读写有错, a.com 引入 b.com :<\iframe src=”www.b.com”>b.com 中需写入cookie,记录上次播发的点,以达到续播,很简单的功能,但是在开发

12月 25 2014

jquery源码学习之extend

jquery extend 语法 jQuery.extend( [deep] target [, object1 ] [, objectN ] ) Returns:Object 描述 将两个或更多对象的内容合并到第一个对象。 实例 Merge defaults and op

12月 24 2014

jquery源码学习之jquery中的正则

最近在学习jquery源码,分析jquery的实现原理,但由于jquery代码比较多,方法之间耦合性很强,要学习一个方法得了解很多其他相关的方法,这些方法中还充斥中不少正则,所以本文会把jquery中用到的正则都抽出来,单独写一篇文章来介绍jquery中的正则。 RegExp 语

12月 22 2014

document.write方法的相关问题

document.write document.write 介绍 1document.write(markup); markup is a string containing the text to be written to the document. 与DOM Ready相

12月 22 2014

hexo

hexo 常用命令 新建文章 $ hexo new <title> 新建草稿 $ hexo new draft <title> 草稿写好之后发布 $ hexo publish [layout] <filename> 生成静态内容 $ hexo

11月 24 2014

找出字符串中出现次数最多的字符

找出字符串中出现次数最多的字符 1234567891011121314151617181920212223242526function findMaxNumChart(str){ 'use strit'; var maxNumChart = null,

11月 16 2014

jquery source code analysis

jquery 源码学习 学习和使用jquery已经很长时间了,源码也读了很长一段时间了,但是感觉对jquery源码的理解还是非常浅,所以决定在深入细读一下jquery源码,并写点东西,方便以后温故知新! 源码学习的是jquery 2.0.3版本。 首先来看一下jquery是什么?

10月 20 2014
« Prev123Next »

标签

  • css4
  • git1
  • hexo1
  • jQuery7
  • js6
  • requirejs1

归档

  • May 20151
  • April 20154
  • January 20158
  • December 20144
  • November 20142
  • October 20142

友情链接

  • Hexo

Powered by hexo and Theme by Pacman © 2015 lyuan