添加记录--insert1.向用户表(user)中添加一条记录varuser={“username”:”Tom”,“age”:10};à对象(json)db.user.insert(user);à向user(集合)中插入记录2.向用户集合中插入一条日志记录varblog={“title”:”title1”,”content”:”content1”,”addtime”:”2012”}db.u..
分类:
数据库 时间:
2014-08-05 03:14:59
阅读次数:
309
http://www.linuxidc.com/Linux/2014-02/96459.htmsublime 配置luabuild sysytem -> new build system.the content:{ "cmd": ["D:\\TDDOWNLOAD\\lua-5.2.3\\lua...
转至:W3CPLUS 网址http://www.w3cplus.com/content/css3-media-queriesMedia Queries直译过来就是“媒体查询”,在我们http://i.cnblogs.com/EditPosts.aspx?opt=1平时的Web页面中head部分常看到...
分类:
Web程序 时间:
2014-08-05 00:17:28
阅读次数:
355
index.html{% extends "base.html" %}{% block content %}Hi, {{user.nickname}}!{% for post in posts %}{{post.author.nickname}} says: {{post.body}}{% endf...
分类:
其他好文 时间:
2014-08-05 00:07:28
阅读次数:
224
一、web服务器示例var http = require('http');http.createServer(function(req, res){ res.writeHeader(200, {Content-Type : 'text/plain'}); res.end('hello w...
分类:
Web程序 时间:
2014-08-05 00:01:58
阅读次数:
417
$('#btnAddr').tooltip({ content: $(''), //弹出收件地址 showEvent: 'mouseover', onUpdate: function (cc) { cc....
分类:
其他好文 时间:
2014-08-04 21:12:47
阅读次数:
308
一、下载任意文件: Header("Content-type: application/octet-stream"); $ua = $_SERVER["HTTP_USER_AGENT"]; $encoded_filename = rawurlencode($fil...
分类:
Web程序 时间:
2014-08-04 20:53:47
阅读次数:
628
第一个Activity 1 /** 2 * 3 */ 4 package com.flysnow.sina.weibo; 5 6 import android.app.Activity; 7 import android.content.Intent; 8 import android.os...
分类:
其他好文 时间:
2014-08-04 20:53:37
阅读次数:
298
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>垂直</title> <style type="text/css"> #content { position:absolute; top:0; bottom:0; left:0; right:0; margin:auto; height:240px; width:70%...
分类:
Web程序 时间:
2014-08-04 14:44:18
阅读次数:
412
今天我们研究一下如何在Android手机上显示GIF动态图片。
首先需要在src目录下新建一个自定义的View,代码如下:
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Movie;
import android.util.AttributeSet;
import ...
分类:
移动开发 时间:
2014-08-04 14:32:37
阅读次数:
266