list集合转换JSON出错误意思是:对象”是一个数组。使用jsonarray取代。解决方法:将JSONObject替换为JSONArray代码:JsonConfig jsonConfig = new JsonConfig();jsonConfig.setCycleDetectionStrategy ...
分类:
Web程序 时间:
2016-04-09 20:24:40
阅读次数:
200
when you use gem install package ,the result:ERROR: While executing gem ... (Encoding::UndefinedConversionError) U+7CFB to IBM437 in conversion from U ...
分类:
其他好文 时间:
2016-04-09 19:03:17
阅读次数:
801
1. seajs是用来进行模块化管理,将每一个功能当做是一个功能模块,在模块之间运用require进行连接,类似于java/C++/C等语言中的类。 2. 在文件html 的尾部引入入seajs的文件,调用seajs.use("main.js");main.js时文件的主功能模块的js文件部分。 d ...
分类:
Web程序 时间:
2016-04-09 18:47:56
阅读次数:
191
function () use ($x, &$y){} 自从PHP5.3开始有了closure/匿名函数的概念,在这里的use关键词的作用是允许匿名函数capture到父函数scope 内存在的$x和$y变量。其中&&y为引用方式capture,也就是说每次该匿名函数调用时,y的值如果 被修改了也反 ...
分类:
Web程序 时间:
2016-04-09 00:20:14
阅读次数:
194
效果图: 控制器: <?phpnamespace backend\controllers;use Yii;use yii\web\Controller;use backend\models\Zhan; class IndexController extends Controller{ //显示页面 ...
分类:
其他好文 时间:
2016-04-08 10:22:14
阅读次数:
157
处理方式: -- 将数据库设为简单模式 alter database IGMS20150202 set recovery simple -- 查看日志 use IGMS20150202 dbcc shrinkfile('IGMS20150202_log') --恢复数据库模式 alter datab... ...
分类:
数据库 时间:
2016-04-08 10:15:02
阅读次数:
179
由于上周末小写把数据数据重复写入数据库,没办法,得去重! 最新使用的语句: use data set nocount ondelete DoRecordProperty from( select TID,SN,COUNT(0) as num,Max(id) as maxid from DoRecor ...
分类:
数据库 时间:
2016-04-08 08:57:18
阅读次数:
194
https://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-blobs/ ...
分类:
其他好文 时间:
2016-04-08 00:54:11
阅读次数:
156
描述Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the same currency. F ...
分类:
其他好文 时间:
2016-04-08 00:38:29
阅读次数:
211
1. What is CoAP “The Constrained Application Protocol (CoAP) is a specialized web transfer protocol for use with constrained nodes and constrained net ...
分类:
其他好文 时间:
2016-04-07 20:50:37
阅读次数:
1293