【判断当前Selection是否为prefab】PrefabUtility.GetPrefabParent(target) == null && PrefabUtility.GetPrefabObject(target) != null参考:file://localhost/Applications...
分类:
其他好文 时间:
2014-07-09 22:31:47
阅读次数:
195
1. [代码]方法代码 function cp(source, target) { function isBaseType(v) { var type = typeof v; var basetype = { "string": true, "number": t...
分类:
编程语言 时间:
2014-07-09 20:43:56
阅读次数:
330
删除就用- (NSString *)stringByReplacingOccurrencesOfString:(NSString *)target withString:(NSString *)replacement;将@“[:1:]"”,替换成@“”分割就用- (NSArray *)compone...
分类:
其他好文 时间:
2014-07-06 21:23:23
阅读次数:
158
$.extend(target,prop1,propN)用一个或多个其他对象来扩展一个对象,返回这个被扩展的对象。这是简化继承的主要工具。返回值:Object参数:target (Object): 要扩展的对象prop1 (Object): 要与第一个对象合并的对象propN (Object): (...
分类:
其他好文 时间:
2014-07-06 19:27:50
阅读次数:
182
表单用于搜集不同类型的用户输入。表单的基本元素有:ButtonCheckboxTextRadioSelectOptionSubmintResetTextarea具体怎么使用我就不介绍了,可以查看HTML。表单的基本属性有action 表单要发送出去的地址enctype:表示表单的封装方式target...
分类:
Web程序 时间:
2014-07-06 17:36:08
阅读次数:
233
不是因为有了希望才坚持,而是因为坚持才有了希望! 不是因为有了机会才争取,而是因为争取了才有机会!
分类:
其他好文 时间:
2014-07-06 16:58:02
阅读次数:
134
先吐槽一下这个标题,空格略蛋疼,不像中文,但是不写空格看上去则更诡异,求解决方案……NSTimer会retain它的target,这样如果在控制器当中定义一个NSTimer,target指定为self,则会引起循环引用。解决方案和防止block引用self一样,第一步需要把NSTimer的操作封装到...
分类:
其他好文 时间:
2014-07-06 14:44:21
阅读次数:
141
1. [代码]方法代码 function cp(source, target) { function isBaseType(v) { var type = typeof v; var basetype = { "string": true, "number": t...
分类:
编程语言 时间:
2014-07-06 13:29:36
阅读次数:
270
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:
其他好文 时间:
2014-07-05 19:10:48
阅读次数:
219
调用系统相册、相机发现是英文的系统相簿界面后标题显示“photos”,但是手机语言已经设置显示中文,纠结半天,最终在info.plist设置解决问题。
只需要改三个地方:
1、plist文件中:
2、info里面-->Custom iOS Target Properites
3、info-->Localizations
至此ok。...
分类:
移动开发 时间:
2014-07-04 09:06:32
阅读次数:
431