1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键no 可用于Table2. 取消选取、防止复制3. onpaste="return false" 不准粘贴4. oncopy="return false;" oncut="retu....
分类:
编程语言 时间:
2014-06-27 15:51:54
阅读次数:
317
作者:tobecrazy 出处:http://www.cnblogs.com/tobecrazy 欢迎转载,转载请注明出处。thank you!由于项目需要(并非因为life is short),开始学习python。1.python 是什么 和perl一样,python是一种脚本语言。由于语法简....
分类:
编程语言 时间:
2014-06-27 15:47:59
阅读次数:
234
1、 下载源码包http://nodejs.org/dist/v0.10.29/node-v0.10.29.tar.gz2、准备安装环境,>python2.6, gcc, g++ python redhat自带了不用装, gcc: yum install -y gcc gcc-c++3、 ta...
分类:
Web程序 时间:
2014-06-27 14:55:37
阅读次数:
224
这一节我们将flow table flow table主要由ovs-ofctl命令操作 ovs-ofctl可以走和openflow controller一样的协议: ssl:ip[:port]: The specified SSL port (default: 6633) on the host a...
分类:
其他好文 时间:
2014-06-27 14:37:24
阅读次数:
206
汉字转拼音的库主要是:pinyin https://github.com/hotoo/pinyinPYMethod https://github.com/a85816841/PotentialGragonSnail/tree/master/ql/lib/pinyingPOAPinyin h...
分类:
移动开发 时间:
2014-06-27 13:31:58
阅读次数:
232
赋值:ruby支持并行赋值,即允许在赋值表达式中出现多余一个值和多于一个的变量:x,y=1,2a,b=b,ax,y,z=[1,2,3](python同样可以正常上面的语句)。Methods in Ruby are allowed to return more than one value, and ...
分类:
编程语言 时间:
2014-06-27 13:30:46
阅读次数:
225
#!/usr/bin/env python# coding=gbkimport sysimport osimport timeif __name__== '__main__': filename = sys.argv[1] nowtime = int(time.time()) st...
分类:
其他好文 时间:
2014-06-27 13:28:10
阅读次数:
148
#-*-coding:utf-8-*-#====================#File:python#Author:python#Date:2014#====================__author__='Administrator'#执行环境#可调用对象"""许多的python对象都是...
分类:
编程语言 时间:
2014-06-27 13:01:47
阅读次数:
219
#encoding=utf-8 print '中国' #字典的一键多值 print'方案一 list作为dict的值 值允许重复' d1={} key=1 value=2 d1.setdefault(key,[]).append(value) value=2 d...
分类:
编程语言 时间:
2014-06-27 13:00:23
阅读次数:
212
注释中address是纠正的意思 等价于correct/*!Pure v0.5.0Copyright 2014 Yahoo! Inc. All rights reserved.Licensed under the BSD License.https://github.com/yui/pure/blo...
分类:
Web程序 时间:
2014-06-27 12:44:58
阅读次数:
356