This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface NSObject (GetGlobalObject) | |
@property (nonatomic , weak) UIScreen *mainScreen ; | |
@property (nonatomic , weak) UIApplication *app ; | |
@property (nonatomic , weak) UIWindow *keyWindow ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MJModalOverlayer.h | |
// Overlayer | |
// | |
// Created by manjun.han on 13-3-13. | |
// Copyright (c) 2013年 com.hmj. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIView+Screenshot.h | |
// | |
// Created by manjun.han on 13-3-13. | |
// Copyright (c) 2013年 com.hmj. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface UIView (Screenshot) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>ns Test</title> | |
<script src="ns.js"></script> | |
</head> | |
<body> | |
<script> | |
var appViewReturned = ns.create("app.view"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 文档位置相关 | |
* @param {Object} opt_doc | |
*/ | |
(function(opt_ns , opt_wind){ | |
var g_win = opt_wind || top ; | |
var g_doc = g_win.document ; | |
var page = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(opt_ns , opt_wind){ | |
var g_win = opt_wind || top ; | |
var g_doc = g_win.document ; | |
var toString = Object.prototype.toString ; | |
var types = "Boolean Number String Function Array Date RegExp Object Error".split(" "); | |
var classToType = {};// javascript 类型名称的精简版映射 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(opt_ns , opt_wind){ | |
var g_win = opt_wind || top ; | |
var g_doc = g_win.document ; | |
var ajax = { | |
fireEvent : function(xhr , type , handlers , timerId){ | |
var handler = handlers["on"+type]; | |
if(timerId){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIAlertView+Loading.h | |
// | |
// Created by manjun.han on 13-3-21. | |
// Copyright (c) 2013年 mj. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface UIAlertView (Loading) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********清除浮动塌陷********/ | |
/* | |
* reference: | |
* 1.http://nicolasgallagher.com/micro-clearfix-hack/ | |
* 2.http://www.qianduan.net/new-clearfix.html | |
* 3.http://stackoverflow.com/questions/8554043/what-is-clearfix | |
* | |
*/ | |
OlderNewer