伊谢尔伦
浏览量9344 | 粉丝173 | 关注2
2017-04-17 11:53:35
2017-04-17 11:53:25
2017-04-17 11:52:53
node.js - 后端错误处理?
比如说我写了个函数给别人用 {代码...} 但是他用的时候忘记传参了 {代码...} 这样不是我期望的, 那么应该怎么处理: 1.文档约定。约定必须传正确的参数。 2.我在scan里抛错。 3.容错处理,即使他没传参,我也尽...
0
1
476
2017-04-17 11:52:42
在 mac osx10.10.4 node.js 0.12.7环境下装 hexo 出现如下错误,求解
bogon:~ wangbin$ npm install hexo -g npm WARN locking Error: EACCES, open '/Users/wangbin/.npm/_locks/hexo-eabe9ea76eaf84ee.lock.STALE' npm WARN locking at Error (native) npm WARN locking /Users/wa...
0
2
748
2017-04-17 11:52:23
linux 系统时间错乱
{代码...} 可是现在 Shanghai 是 10:38, 明显是CST时区错了, 但接下去我找不到原因了。 大家能指出哪里搞的怪吗? 谢谢! 改了下 LC_TIME , 重启,无效。
0
2
324
2017-04-17 11:52:18
2017-04-17 11:52:04
2017-04-17 11:52:03
c++ - 如何清理windwos文件系统的缓存
打算用c++写一个计算文件读写的性能的小程序。所以需要清除文件缓存。 在linux下,可以用posix_fadvise 清理文件系统缓存,在windows下用什么函数呢? 主要我想测试从磁盘读取数据的速度,如果有缓存的话就会很快...
0
1
787
2017-04-17 11:51:59
2017-04-17 11:51:46
c++ - 数据结构停车场问题,出停车场时有问题。
include include include using namespace std; class Car { public: int licence; int time; }; class Parknode//停车场节点 { public: Car car; Parknode next; Parknode(int l = 0, int t = 0) { car.licence ...
0
0
436