会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
canbefree
博客园
首页
新随笔
联系
管理
上一页
1
···
9
10
11
12
13
14
15
16
17
18
下一页
2014年5月12日
Cookie
摘要: JS:补习一下 js Date类知识: 1 //获取两分钟后的时间,并以当前时区输出:2 var d=new Date();3 d.setTime(d.getTime()+1000*120);4 document.write(d.toUTCString());5 6 //获取40天后的时间,并输出:...
阅读全文
posted @ 2014-05-12 14:39 UCanBeFree
阅读(141)
评论(0)
推荐(0)
2014年5月10日
ajax
摘要: JS代码如下:(页面请求)$.ajax({ type:'get', url:'purchasepay/finance/purchasepay/payaction', async:false, data:{'id'...
阅读全文
posted @ 2014-05-10 14:16 UCanBeFree
阅读(125)
评论(0)
推荐(0)
layer弹出框
摘要: layer: 下载js和layer库弹出框类型: 警告: 对话框: 框架: //弹出窗口$(document).ready(function(){ $("#login").click(function(){ $.layer({ type: 2, ...
阅读全文
posted @ 2014-05-10 12:29 UCanBeFree
阅读(434)
评论(0)
推荐(0)
Session
摘要: Session: 关键词: 如用户购物车,用户姓名,临时信息; session是会话的意思: 1 7 8 9 10 8vqadncasepsjs2as9vb3jqkp016 //说明用户ID会保存再服务器中17 ?>18 19 20 View Code 摧毁Session: ...
阅读全文
posted @ 2014-05-10 11:12 UCanBeFree
阅读(127)
评论(0)
推荐(0)
Cookie
摘要: Cookie: 关键名:收藏,书签;如何添加、删除、输出一个Cookie://设置 Cookie:setcookie('HHaaa',"好",time()+3600);setcookie('cookie',"你好",time()+3600);//删除cookie:setcookie("HHaaa"...
阅读全文
posted @ 2014-05-10 10:53 UCanBeFree
阅读(142)
评论(0)
推荐(0)
2014年5月9日
顺时针打印矩阵
摘要: "; }}/* * 分析: 由一周为一个轮回。 如果刚好有偶数个周,数组高大于宽,则有$col/2次轮回,若宽大于高则 有$row/2个轮回。 如果未奇数个周,则有$len/2+1个周。 */function Printarrayincircle($arr) { $col = count...
阅读全文
posted @ 2014-05-09 16:32 UCanBeFree
阅读(200)
评论(0)
推荐(0)
2014年5月8日
常用判断
摘要: isset:变量是否设置,或者是否未null$var="11";isset($var);返回1isset($empty);返回0数组$arr=array();isset($arr);返回1empty:""、0、"0"、NULL、FALSE、array()、var $var;以及没有任何属性的对象都将...
阅读全文
posted @ 2014-05-08 17:30 UCanBeFree
阅读(101)
评论(0)
推荐(0)
2014年5月7日
基础学习
摘要: Datetime:2014-05-0717:04:53PYTHON 号称胶水语言。一,表,元组,字典区别:表:可以修改a=[1,3,4,5]a[2]=5print a#[1,3,5,5]View Code元组:不能被修改a=(1,2,3)a=(a[0],2,a[1])print a#1,2,2#数组...
阅读全文
posted @ 2014-05-07 17:23 UCanBeFree
阅读(143)
评论(0)
推荐(0)
实用命令
摘要: 拷贝替换文件 yes|cp -r /dir/targe targe查看已安装软件包 sudo dpkg -lfind -exec 处理文件当参数过长,就回中断。find .-type f -print |xargs filerm -rf !(keep1 | keep2) #删除keep1和kee...
阅读全文
posted @ 2014-05-07 13:56 UCanBeFree
阅读(978)
评论(0)
推荐(0)
一,tkinter introduction
摘要: Datetime:2014-05-0712:18:54 why I use it?在用python 做gui开发,tkinter是最基本的知识。小型应用上很有帮助。1,Downloading the module:sudo apt-get install python-tk2,Simple Exam...
阅读全文
posted @ 2014-05-07 12:16 UCanBeFree
阅读(167)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
16
17
18
下一页
公告