using System.Collections;using System.Collections.Generic;using UnityEngine; public class InventoryItem : UIDragDropItem { void Start(){ base.Start(); ...
分类:
其他好文 时间:
2017-05-20 14:56:52
阅读次数:
174
如果一个类没有继承Serilizable接口,那么它就不能被序列化,写入文件的时候会报异常。如果一个类继承了Serilizable接口,那么这个类的所有属性和方法都可以自动被序列化,而现实中我们又希望继承Serilizable的这个类的某些属性不被序列化保存该需要怎么做呢?这时就需要Transien ...
分类:
其他好文 时间:
2017-05-20 13:55:04
阅读次数:
171
spring 文件上传有现成的工具用起来也挺简单。就是在还不是非常熟悉的时候可能会出一些错. 近期碰到了 org.apache.catalina.connector.RequestFacade cannot be cast to org.springframework.web.multipart.M ...
分类:
编程语言 时间:
2017-05-20 13:23:44
阅读次数:
160
题目描写叙述 Given a sequence of positive integers and another positive integer p. The sequence is said to be a "perfect sequence" if M <= m * p where M and ...
分类:
其他好文 时间:
2017-05-20 13:18:48
阅读次数:
169
using System.Collections;using System.Collections.Generic;using UnityEngine; public class Inventory : MonoBehaviour { public static Inventory _instanc ...
分类:
其他好文 时间:
2017-05-20 13:17:59
阅读次数:
196
1,简单工厂 -1,定制抽象接口。 -2,定制详细子类。 -3。定制工厂类,通过工厂类的静态方法返回不同的子类对象。 package pattern.chp02.facroty;/** * 类描写叙述:汽车接口 * * @author: Jing * @version $Id: Exp$ * * H ...
分类:
编程语言 时间:
2017-05-20 13:15:21
阅读次数:
260
和map()类似,array的filter也接收一个函数 和map()不同的是,filter把传入的函数依次作用于每个函数,然后根据返回TRUE还是FALSE来做决定保留还是舍弃该元素 例如,删除一个数组中的偶数 var arr=[1,2,4,5,6,7,9,11,13,15,16]; var r= ...
分类:
编程语言 时间:
2017-05-20 12:29:56
阅读次数:
182
管理员身份打开cmd窗口,输入下面命令: cscript slmgr.vbs /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43 提示:Installed product key NPPR9-FWDCX-D2C8J-H872K-2YT43 successfully. cscript ...
JavaScript精确加法 JavaScript精确乘法 JavaScript精确除法 ...
分类:
编程语言 时间:
2017-05-20 10:13:45
阅读次数:
179