摘要:
$(function () {//浏览器检测,判断是否是IE if(!+[1,]) { //alert("这是ie浏览器"); $('.new_Message').css('top', '14px'); //调整通知栏的位置 $('.stuUser').click(function ()... 阅读全文
摘要:
".$start .""; // $mail = M('sysinfo'); // $where['parameter'] = 'mailPageNum'; // $mailListLength = $mail->wh... 阅读全文
摘要:
import sysreload(sys)sys.setdefaultencoding('utf8')import matplotlib.pyplot as pltimport stringfile = open("GD.txt")i = 0x = range(0)y = range(0)for l... 阅读全文
摘要:
// MyMakv.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"struct strategy { int state; int action; };// P 建立状态到行动的映射,P 即映射表strategy ... 阅读全文
摘要:
// AntColony.cpp : 定义控制台应用程序的入口点。//#include #include #include #include#include #include #include #include using namespace std;#include #include ... 阅读全文
摘要:
// AntColony.cpp : 定义控制台应用程序的入口点。////#include "stdafx.h"#include #include #include #include #include #include #include using namespace std; //打... 阅读全文
摘要:
#!usr/bin/python#coding=utf-8import urllib2import sys, time, reimport sysimport jiebajieba.load_userdict("userdict.txt")import jieba.analyseimport jie... 阅读全文
摘要:
#coding=utf-8import obtainKeywordsimport sys, reimport chardet reload(sys)sys.setdefaultencoding("utf-8")# sys.setdefaultencoding('gb18030') #判断 文本(字符... 阅读全文
摘要:
#!usr/bin/python#coding=utf-8import urllib2import sys, time, reimport sysimport chardet import jiebajieba.load_userdict("userdict.txt")import jieba.an... 阅读全文
摘要:
import osimport shutilimport reimport syssrc = "S:\\date\\before" #转换之前的文件夹,支持包含文件夹ddn = "S:\\date\\after" #转换之后的文件夹def ReadFileandSave... 阅读全文
摘要:
import syssys.path.append('../')import jiebaimport jieba.analysefrom optparse import OptionParserUSAGE = "博客园是一个面向开发者的知识分享社区。自创建以来,博客园一直致力并专注于为开发者打造一个... 阅读全文
摘要:
#!usr/bin/python#coding=utf-8import os###########################################################################文件编码类型判断def obtainFileType(ff): im... 阅读全文
摘要:
#!/usr/bin/pythonimport randomimport sysdef drawBoard(board): NLINE = " 1 2 3 4 5 6 7 8" HLINE = " +---+---+---+---+---+---+... 阅读全文
摘要:
#!usr/bin/python#coding=utf-8import urllib2import sys, time, reimport syssys.path.append("../")import jiebajieba.load_userdict("userdict.txt")import j... 阅读全文
摘要:
1.XMLHttpRequest2.GET 与POST3.封装Ajax2005 年Jesse James Garrett 发表了一篇文章,标题为:“Ajax:A new Approach to WebApplications”。他在这篇文章里介绍了一种技术,用他的话说,就叫:Ajax,是Asynch... 阅读全文
摘要:
cookie 也叫HTTP Cookie,最初是客户端与服务器端进行会话使用的。比如,会员登录,下次回访网站时无须登录了;或者是购物车,购买的商品没有及时付款,过两天发现购物车里还有之前的商品列表。HTTP Cookie 要求服务器对任意HTTP 请求发送Set-Cookie,因此,Cookie 的... 阅读全文
摘要:
闭包匿名函数就是没有名字的函数,闭包是可访问一个函数作用域里变量的函数.匿名函数:没有名字的函数.//自我执行的匿名函数 (function() {})();(function () { alert('hgwj');})();//这是一条语句,加个分号.var box = function ... 阅读全文
摘要:
//继承,通过原型链实现function Box() { this.name = 'hg';};//被继承的函数叫超类型,其他语言中叫父类,基类.function Desk() { this.age = 100;};//继承的函数叫子类或者派生类.//通过原型链继承,超类型实例化后的对象... 阅读全文
摘要:
一,创建对象var box = new Object();box.name = 'lee';box.age = 23;box.run = function () { return this.name + this.age + " run....";}alert(box.run());上面创建了... 阅读全文
摘要:
Regular expression 用RegExp类表示正则表达式.正则表达式主要用来验证客户端的输入.填写完以后,发送给服务器.正则表达式:匹配和文本检索替换的函数.一,创建正则表达式,提供了2种方法.new和字面量(1)new 方式创建var box = new RegExp('box'); ... 阅读全文