配置文件的读写 System.ConfigurationManager类用于对配置文件的读取。其具有的成员如下: 一、AppSettings AppSetting是最简单的配置节,读写非常简单。 名称 说明 AppSettings 获取当前应用程序默认配置的 AppSettingsSection 数 ...
分类:
其他好文 时间:
2017-11-06 21:16:41
阅读次数:
182
https://github.com/thekvs/cpp-serializers ...
分类:
其他好文 时间:
2017-11-03 20:20:24
阅读次数:
115
小程序的接口刚写完时,一个接口的调用时间大概是700ms左右,100并发的100请求的压测结果是9s,用的都是项目的底层方法(有缓存),框架是ci.而上线城市服务的三星基准是500并发500ms以下,远远不达标,于是乎开始了漫长的优化.在此记录一下从10+s优化到300ms的过程. 用xhprof分 ...
分类:
其他好文 时间:
2017-10-31 12:48:51
阅读次数:
158
一、配置默认路由方式 {Controller=Home}/{action=Index}/{id?} 默认请求地址:http://localhost:xxx/home/index /id? 是可选项例如 HomeController中 第一个方法是默认路由所指向方法。 第二个方法,原先请求地址应该为: ...
分类:
Web程序 时间:
2017-10-28 17:50:11
阅读次数:
346
转自:http://blog.csdn.net/csdnzhangtao5/article/details/52981541 serialize()、serializeArray()方法都是jquery用户序列化表单的,用于ajax提交的data值的序列化 在chrome的控制台我们很清楚的看到了s ...
分类:
Web程序 时间:
2017-10-26 23:04:32
阅读次数:
260
jquery 表单序列化 $().serialize() $().serializeArray() $().serializeJson() ...
分类:
Web程序 时间:
2017-10-26 15:38:20
阅读次数:
258
现象描述: MVC4中将dataTable转换成Json时,总是提示错误:“序列化类型为“System.Reflection.RuntimeModule”的对象时检测到循环引用。”; 说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处 ...
分类:
其他好文 时间:
2017-10-25 18:36:55
阅读次数:
214
One way to serialize a binary tree is to use pre-order traversal. When we encounter a non-null node, we record the node's value. If it is a null node, ...
分类:
其他好文 时间:
2017-10-25 00:52:06
阅读次数:
202
Design an algorithm and write code to serialize and deserialize a binary tree. Writing the tree to a file is called 'serialization' and reading back f ...
分类:
其他好文 时间:
2017-10-24 13:08:22
阅读次数:
184
注意:市面上对于写RESTful是用RestFul,其实是不规范的,标准写法RESTful。 在Java上,处理这个应该是没有继承Serializable类,然后通过Eclipse生成serialVersionUID上去试一下。 参考: https://stackoverflow.com/quest ...
分类:
其他好文 时间:
2017-10-24 01:43:27
阅读次数:
570