using Autodesk.AutoCAD.ApplicationServices;using Autodesk.AutoCAD.Runtime;[assembly:CommandClass(typeof(TestRunCommand.Class1))]namespace TestRunComma...
分类:
其他好文 时间:
2014-07-27 22:02:39
阅读次数:
192
MRC
防止 block 对self的引用 解决办法
__block typeof(self) weakSelf = self;
ARC
防止 block 对self的引用 解决办法
__weak typeof(self) weakSelf = self;...
分类:
其他好文 时间:
2014-07-24 23:21:43
阅读次数:
290
1、问题:在Javascript中,typeof(undefined) == undefined
成立吗?
答案是不成立,全局函数 typeof()返回值类型为字符串类型,六个可能值: "number", "string", "boolean", "object" ,"function", 和 "undefined"。
只有
typeof(undefined) =="undefined...
分类:
其他好文 时间:
2014-07-24 23:18:53
阅读次数:
238
今天看了Javascript的基础教程,其中说了一个关于typeof的问题。typeof运算符的作用就是返回一个变量的类型,如果变量是一个数字,则返回number。 如果是字符串,则返回string, 布尔类型则返回boolean, 函数则返...
分类:
编程语言 时间:
2014-07-24 12:31:15
阅读次数:
558
1、动态加载Atlas,并用NGUITools添加Sprite1 UIAtlas MyAtlas = Resources.Load("MyAtlas", typeof(UIAtlas)) as UIAtlas;2 GameObject bagBox = GameObject.Find("BagBox...
分类:
其他好文 时间:
2014-07-19 20:04:52
阅读次数:
195
//js判断变量初始化有三种形式
var x;
if (x == null) {
alert("x为null");
}
if (typeof (x) == "undefined") {
alert("x为undefined");
}
//判断变量初...
分类:
Web程序 时间:
2014-07-18 12:26:09
阅读次数:
193
JavaScript 对象除了数字、字符串、布尔值、null、undefined(都不可变)这5种简单类型,其他都是对象。javascript 存在2套类型系统,一套是元类型,用typeof可以检验,有六种:"number"、"string"、"boolean"、"object"、"function...
分类:
编程语言 时间:
2014-07-16 17:00:12
阅读次数:
249
1.instanceof和typeof区别两者都是用来判断类型用的,instanceof顾名思义,是否是某一类型的实例,这个返回值是bool值,例如(new String("so") instanceof String) typeof返回值则是类型名,如(typeo...
分类:
编程语言 时间:
2014-07-16 15:31:35
阅读次数:
203
pageTools.BindEnumToDropdownList(typeof(enumDealerArea), ddlBmwArea, new ListItem("--请选择--", "0"), "");/// /// 绑定枚举到dropdownlist /// /// 枚举类型 /// dr.....
分类:
其他好文 时间:
2014-07-16 15:16:44
阅读次数:
153