HEXO升级到3+以后,不可避免的带来了一些坑。

hexo Deployer not found: github 是什么情况

执行hexo deploy时,提示ERROR Deployer not found: github

解决方案:
在version 3中的配置文件__config.yml,需要将type: github修改为type: git
然后执行命令:npm install hexo-deployer-git --save

如此就可正常使用。

继续阅读»

主要功能分支:

  • selector可以转换为false,如””,null,undefined,false,返回this 示例:$(undefined)
  • selector为字符串 示例:$("<div></div>)或$("#id")或$("div")
  • selector为DOM元素,手动设置第一个元素和属性context指向该DOM元素,属性length为1,然后返回包含该DOM元素引用的jQuery对象 示例:$(document)
  • selector是函数,则认为是绑定ready事件,示例:$(function(){})
  • selector是jQuery对象,参数selector包含属性selector,则认为它是jQuery对象,将会复制它的属性selector和context 示例:$($('div p'))

继续阅读»

如何开始

var myScroll = new IScroll(‘#wrapper’);
第一个参数:选择器的字符串或原生元素的引用
比如:
var wrapper = document.getElementById(‘wrapper’);
var myScroll = new Scroll(wrapper);

继续阅读»