今天发现一个已有的项目在JDK1.8环境下运行时,会报错: The type java.util.Map$Entry cannot be resolved. It is indirectly refrenced from required .class files. 上网查了查资料, 原来是使用的JDK版本过高,可能是oracle公司做的兼容不太好吧. 解决方法: 1.下载jdk1.6,同时jdk1.8也不需要删除,因为以后可能会使用一些新特性: 2.在eclipse下,右键项目,选择Porpe…
最在在使用pytest,用的是pytest 3.9.3,python版本为2.7.10,但一直在使用时发现总提示 File "c:\python27\Lib\json\__init__.py", line 189, in dump for chunk in iterable: File "c:\python27\Lib\json\encoder.py", line 431, in _iterencode for chunk in _iterencode_list(o…
ViewModel中有一个数组,代码大概如下: function ReportViewModel(){ var self = this; self.extendedProperties = ko.observableArray([]); ... } 在从服务端获取到数据之后,使用下面的代码更新模型: for (var index in json.extendProperties) { reportViewModel.extendedProperties.push(extendProperties…