一、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
1、注意判断数字时,如果是get传递的参数,一定要用int转换。不然出错。2、$var 定义时,冒号后的内容不是python内容,需加上$符号。如$var naviId:$naviId。3、各个模板中的变量,要对应一致。在用base布局时,整个模板内容为layout模板的content,模板内定义的...
分类:
Web程序 时间:
2014-08-04 14:06:07
阅读次数:
371
post请求的请求体有以下两种格式:1. 字符串:'name=code_bunny&age=12' 这种格式的请求体,需要配置请求头'Content-Type':'application/x-www-form-urlencoded'2. json: {name:'code_bunny',age:1....
分类:
其他好文 时间:
2014-08-04 13:32:17
阅读次数:
246
还是那个同事. 这次需要帮她打印出sql 输出到页面来调试sql
这里我们用插件或者是配置文件的方式来启动wordpress的debug
在插件目录 wordpress/wp-content/plugins/ 新建一个文件叫bt_debug_sql.php
<?php
/*
Plugin Name: Bt Debug Sql.
Plugin URI: http...
分类:
数据库 时间:
2014-08-04 11:05:07
阅读次数:
336
You should be comfortable with the content in the modules up to and including the module "Arrays" for this project.Create a class called consultCo tha...
分类:
其他好文 时间:
2014-08-04 10:31:16
阅读次数:
291