一、控制器逻辑处理 public function add(){ if(IS_POST){ $model=D('Goods'); if($model->create(I('post.'),1)){ if($model->add(...
分类:
Web程序 时间:
2015-11-01 21:10:42
阅读次数:
2403
Maximum sum总Time Limit:1000msMemory Limit:65536kBDescriptionGiven a set of n integers: A={a1, a2,..., an}, we define a function d(A) as below: ...
分类:
其他好文 时间:
2015-11-01 20:54:46
阅读次数:
209
//给输入框绑定事件key=$("#key");key.bind("focus",focusKey).bind("blur",blurKey).bind("changecutinputpropertychange",searchNode);key.bind(‘keydown‘,function(e){if(e.which==13){searchNode();}});setTimeout("search();","300");给id=key节点绑定focus,blur,keydown..
分类:
Web程序 时间:
2015-11-01 19:35:29
阅读次数:
161
设置cookie: function?setCookie(name,value,days,path){
????????var?t?=?new?Date(),
??????????????????sCookie=?name?+?"="?+?escape(value);
????????????...
分类:
编程语言 时间:
2015-11-01 18:08:31
阅读次数:
162
//获取所有下线function get_all_heeler($user_id,$user_rank = 0){ $user_id_array = $user_id; while (true) { if (!empty($user_rank)) { ...
分类:
Web程序 时间:
2015-11-01 18:06:21
阅读次数:
244
原理是判断从上下左右哪个方向移入遮罩层从哪个方向运动进入,从哪个方向移出,遮罩层从哪个方向运动滑出。这个是圆的角度弧度转换公式:角度-》弧度n*PI/180;弧度-》角度n*180/PI;角度-》方向Math.atan2(y,x)上js代码function a2d(a){ return a*1...
分类:
编程语言 时间:
2015-11-01 18:00:19
阅读次数:
202
服务端:function TServerMethods1.spExecOut(funcId, sqlId, inParams: OleVariant): OleVariant;var d: TfrmDB; procName: string; params: TFDParams; i, h: ...
分类:
其他好文 时间:
2015-11-01 17:53:21
阅读次数:
569
MongoDB基本操作之Updateupdate方法参数//query:更新的条件//obj:更新的对象//Boolean类型,true:没有则新增,false:只更新不新增//multi:是否允许批量更新function (query, obj, upsert, multi) { //dos...
分类:
数据库 时间:
2015-11-01 17:51:58
阅读次数:
220
1. Socket.IO1.1 服务器var http = require('http');var sio = require('socket.io');var fs = require('fs');var server = http.createServer(function(req,rsp){ ...
分类:
Web程序 时间:
2015-11-01 16:36:41
阅读次数:
248
app.jsvar express=require("express");var app=express();app.get('/readid/:id',function(req,res){ res.send(req.params.id);});var server = app.listen(...
分类:
Web程序 时间:
2015-11-01 15:17:54
阅读次数:
413