译自官方手册:jQuery.each()对数组或对对象内容进行循环处理jQuery.each( collection, callback(indexInArray, valueOfElement) )collection 遍历的对象或数组callback(indexInArray, valueOfE...
分类:
其他好文 时间:
2014-08-21 16:27:54
阅读次数:
167
释义:jQuery效果-animate()方法语法一:$(selector).animate(styles,speed,easing,callback)styles:必需。规定产生动画效果的 CSS 样式和值。speed:可选。规定动画的速度。默认是 "normal"。easing:可选。规定在不同...
分类:
其他好文 时间:
2014-08-21 13:16:34
阅读次数:
191
{ "cmd" :["C:/Lua/Lua.exe","$file"], "file_regex" :"^(?:lua:)?[\t](...*?):([0-9]*):?([0-9]*)", "selector" :"source.lua"}{ "cmd" :["node","$file"], "fi...
分类:
编程语言 时间:
2014-08-18 20:27:52
阅读次数:
186
on函数是在jquery 1.7 加入的实际应用例子:http://keleyi.com/a/bjac/scdm44l9.htm描述: 在选定的元素上绑定一个或多个事件处理函数。定义:.on( events [, selector ] [, data ], handler(eventObject) ...
分类:
Web程序 时间:
2014-08-17 14:17:52
阅读次数:
378
分为两种情况:1. 想要隐藏某个视图的状态栏, 比如说, 从界面A, push 到界面B的时候, 界面A原本显示状态栏, 然而我们需要界面B不显示状态栏。这时候, 可以这样做:在B中实现:- (void)viewDidLoad
{
[super viewDidLoad];
if ([self respondsToSelector:@selector(setNeedsSta...
分类:
移动开发 时间:
2014-08-16 17:09:40
阅读次数:
220
$("#父窗口元素ID",window.parent.document);对应javascript版本为window.parent.document.getElementByIdx_x("父窗口元素ID");取父窗口的元素方法:$(selector, window.parent.document);...
分类:
Web程序 时间:
2014-08-15 12:33:48
阅读次数:
311
找到zepto源码:修改为如下代码:zepto.Z = function(dom, selector) { dom = dom || [] // 支持ie10,主要是支持wp8 if(window.attachEvent){ for(var func in $.fn){ dom...
分类:
其他好文 时间:
2014-08-14 23:18:26
阅读次数:
537
IOS多线程ios有三种主要方法:1、NSThread。2、NSOperation。3、GCD。1、NSThread:调用方法如下:如果需要函数参数的话,可以通过Object传递。1.1:[NSThread detachNewThreadSelector:@selector(threadInMain...
分类:
移动开发 时间:
2014-08-12 18:36:04
阅读次数:
211
1 querySelector和querySelectorAll是W3C提供的新的查询接口,他们的参数必须符合css selector,不同的是前者返回的是DOM对象,包含DOM对象下的所有节点,而后者返回的是NodeList,存放的是类数组元素。2目前IE8/9及Firefox/Chrome/Sa...
分类:
其他好文 时间:
2014-08-12 12:52:24
阅读次数:
223
- (void)startLoop
{
[NSThread
detachNewThreadSelector:@selector(loopMethod)
toTarget:self
withObject:nil];
}
- (void)loopMethod
{
[NSTimer
scheduledTimerWithTimeInterval:3.0f...
分类:
移动开发 时间:
2014-08-11 21:31:22
阅读次数:
211