未使用Async之前coffeescript写的代码:exports.product_file_add = (req,res) -> if !req.param('file_id') return res.json({'flag':'error','msg':'请先上传文件再保存!'}) ...
分类:
Web程序 时间:
2014-07-10 10:16:14
阅读次数:
773
1、类级别的插件开发类级别的插件开发,可似为给jQuery类添加方法,调用方式:$.你的方法(),如:$.ajax() 函数。1.1、给jQuery类添加方法$.alertMsg = function(msg){ alert("alertMsg : " + msg); };// 调用// $.ale...
分类:
Web程序 时间:
2014-07-07 18:11:40
阅读次数:
171
Android中Log的输出有如下几种:Log.v(String tag, String msg); //VERBOSELog.d(String tag, String msg); //DEBUGLog.i(String tag, String msg); //INFOLog.w(String ta...
分类:
移动开发 时间:
2014-07-07 15:53:03
阅读次数:
279
#include #include #include #include using namespace std;const char *rev = "A 3 HIL JM O 2TUVWXY51SE Z 8 ";//字符A-9的镜像字符,没有镜像则为空格const char * msg[...
分类:
其他好文 时间:
2014-07-07 13:49:37
阅读次数:
157
ios 第三方qq登陆 {"ret":100030,"msg":"this api without user authorization"}...
分类:
移动开发 时间:
2014-07-03 18:05:35
阅读次数:
879
在使用ansible中报错"msg":"Error:ansiblerequiresajsonmodule,nonefound!",然后各种google,最后查到一个文件说是在客户端需要安装python-simplejson这个包,安装上包以后就没有问题了
分类:
其他好文 时间:
2014-07-03 14:41:59
阅读次数:
172
find的语法:find [起始目录] 寻找条件 操作find ./msg -name "*.h" -o -name "*.hpp"在当前msg目录下查找以.h或.hpp结尾的文件,这两个 -name 之间的 -o 表示逻辑或(or)
分类:
系统相关 时间:
2014-07-01 17:59:32
阅读次数:
215
#include
#include
#define MAX_MSG_BUF_LEN 512
int iKey = 6004;
struct ipcmsgbuf
{
long mtype;
char mtext[MAX_MSG_BUF_LEN];
};
int main( void )
{
int qid;
cha...
分类:
其他好文 时间:
2014-07-01 06:50:31
阅读次数:
199
(一)
class Shape {
public:
virtual void draw() const = 0;
virtual void error(const string& msg);
int objectID() const;
};
class Rectangle : public Shape {...};
class Ellipse : publi...
分类:
编程语言 时间:
2014-06-30 00:55:48
阅读次数:
409
1、强引用
public void handleMessage(Message msg) {
case FAIL:
GoplayException mException = new GoplayException();
setVideoUrlFailReason(mException);
mListener.onFailed(mException);
break;...
分类:
编程语言 时间:
2014-06-29 20:36:11
阅读次数:
299