第一种:懒汉模式var Singleton=(function(){ var
instantiated; //比较懒,在类加载时,不创建实例,因此类加载速度快,但运行时获取对象的速度慢 function init(){
/*这里定义单例代码*/ return...
分类:
编程语言 时间:
2014-05-19 20:44:44
阅读次数:
357
function displayHideUI(){ var ui
=document.getElementById("bbs");ui.style.display="none";}function
displayShowUI(){ var ui =document.getElementById("b...
分类:
Web程序 时间:
2014-05-19 11:28:40
阅读次数:
353
1、import
XXX仅仅是告诉我们需要使用这个包,但是你真正使用的时候,需要完整的导入这个包的全路径 比如: import wechat.views
在使用其中的hello函数的时候,需要 wechat.views.hello - 这个路径不能简略2、from ... import .....
分类:
编程语言 时间:
2014-05-19 11:17:40
阅读次数:
263
Jquery中绑定事件有三种方法:以click事件为例(1)target.click(function(){});(2)target.bind("click",function(){});(3)target.live("click",function(){});第一种方法很好理解,其实就和普通JS的...
分类:
Web程序 时间:
2014-05-19 09:36:17
阅读次数:
310
Question 1:Given an array of integers, find two
numbers such that they add up to a specific target number.The function twoSum
should return indices of...
分类:
其他好文 时间:
2014-05-19 09:35:41
阅读次数:
321
#MySQL for Python(MySQLdb)
Note#切记不要在python中创建表,只做增删改查即可。#步骤:(0)引用库 -->(1)创建连接 -->(2)创建游标
-->(3)选择数据库 -->(4)执行语句 -->(5)关闭连接#(0)引用库import MySQLdb#(1)创建...
分类:
数据库 时间:
2014-05-19 09:34:15
阅读次数:
413
function yanzheng(val) { return
val.replace(/(^\s*)|(\s*$)/g, ""); }function Inputchecking() { var account =
document.getElementById("txt_ACCOUNT");.....
分类:
Web程序 时间:
2014-05-19 09:23:56
阅读次数:
237
1
/**************************************************************************************
2 * Function : 括号匹配 3 * Create Date...
分类:
其他好文 时间:
2014-05-19 08:34:14
阅读次数:
249
CREATE FUNCTION "FAS"."GET_ALL_NAME" ( "A_ID"
BIGINT ) RETURNS VARCHAR(9000) SPECIFIC
"SQL131107190046233"--SPECIFIC名称不能与其他FUNCTION的重复 LANGUAGE SQL...
分类:
数据库 时间:
2014-05-19 08:05:28
阅读次数:
444
因为之前的版本python连带yum玩坏啦修不好,就重新安装了个cento6.5,顺便开始记下关于centos管理的种种。安装windows用ultro,linux用cat/dd
把dvd-iso1写到U盘上就可以(不需要删除pakcages和粘贴ios1,2),然后用U盘启动安装即可。iso1,2...
分类:
其他好文 时间:
2014-05-19 07:39:59
阅读次数:
325