群聊的前台主要代码:
{%block content%}
测试版本,每天凌晨4:00清水,enjoy it~~:-)-->
{%for i in content[19*int(num)-19:19*int(num)]%}
【{{i[1]}}】 ({{i[3]}}) : {{i[2]}}
{%end%}
{%for i in range(1,pages+1)%}
{{i}}
{%...
分类:
其他好文 时间:
2014-05-13 23:14:45
阅读次数:
388
HTTP请求中,如果是get请求,那么表单参数以name=value&name1=value1的形式附到url的后面,如果是post请求,那么表单参数是在请求体中,也是以name=value&name1=value1的形式在请求体中。通过chrome的开发者工具可以看到如下(这里是可读的形式,不是真正的HTTP请求协议的请求格式):
get请求:
RequestURL:http://127....
分类:
其他好文 时间:
2014-05-13 05:59:56
阅读次数:
353
<!doctypehtml>
<html>
<metacharset="utf-8"/>
<head>
<title>益司CMS-PC与手机建站集成</title>
<metaname="viewport"content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<linkrel="stylesh..
分类:
其他好文 时间:
2014-05-13 05:03:20
阅读次数:
251
<!doctypehtml>
<html>
<metacharset="utf-8"/>
<head>
<title>益司CMS-PC与手机建站集成</title>
<metaname="viewport"content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<linkrel="stylesh..
分类:
其他好文 时间:
2014-05-13 03:47:28
阅读次数:
422
<!doctypehtml>
<html>
<metacharset="utf-8"/>
<head>
<title>益司CMS-PC与手机建站集成</title>
<metaname="viewport"content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<linkrel="stylesh..
分类:
其他好文 时间:
2014-05-13 03:30:05
阅读次数:
250
<!doctypehtml>
<html>
<metacharset="utf-8"/>
<head>
<title>益司CMS-PC与手机建站集成</title>
<metaname="viewport"content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<linkrel="stylesh..
分类:
其他好文 时间:
2014-05-13 03:13:38
阅读次数:
238
importjava.io.FileNotFoundException;
importjava.io.FileOutputStream;
importjava.io.IOException;
importandroid.R.integer;
importandroid.content.Context;
importandroid.os.Environment;
publicclassFileService{
privateContextcontext;
publicFileService(Contextcon..
分类:
移动开发 时间:
2014-05-13 02:59:18
阅读次数:
329
学习ContentproviderUri的格式:“content://”+authority+“/表名”字符串转成Uri格式:Uri.parse();获取Cursor某一项的数据:Cursor先锁定某一行:如cursor.movetofirst();Cursor再根据列名锁定某一列,最后取出数据:cursor.getvaluesType(cursor.getcolumnindex(“列名”)..
分类:
其他好文 时间:
2014-05-13 01:51:36
阅读次数:
405
显示注册用户的前台主要代码如下:
{%block content%}
{%for i in users%}
{{i[1]}}({{i[3]}}星级)
{%end%}
{%end%}
显示注册用户的后台代码如下:
class memberHandler(tornado.web.RequestHandler):
def get(self):
name=self.get_coo...
分类:
其他好文 时间:
2014-05-12 23:10:06
阅读次数:
574
<!doctypehtml>
<html>
<metacharset="utf-8"/>
<head>
<title>益司CMS-PC与手机建站集成</title>
<metaname="viewport"content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<linkrel="stylesh..
分类:
其他好文 时间:
2014-05-11 19:22:08
阅读次数:
386