浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年5月13日

摘要: Zombie.jszombie.labnotes.org/-网页快照-翻译此页Zombie.jsis a lightweight framework for testing client-side JavaScript code in a...To installZombie.jsyou need Node.js, NPM, a C++ compiler and Python. 阅读全文
posted @ 2012-05-13 23:52 lexus 阅读(267) 评论(0) 推荐(0)

摘要: shebang #!/usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js 阅读全文
posted @ 2012-05-13 23:29 lexus 阅读(282) 评论(0) 推荐(0)

摘要: #!/usr/bin/env python#encoding=utf-8import threadingimport timeimport datetimeimport Queueimport loggingimport sys,os,os.path#def get_logger(level=logging.DEBUG):# logger = logging.getLogger()# hdlr... 阅读全文
posted @ 2012-05-13 19:13 lexus 阅读(254) 评论(0) 推荐(0)

摘要: [Python][Javascript] Python抓Javascript產生的頁面 (phantomJs)一向都是用Python的Beautiful Soup來parse網頁,現在出到第四版,更好用文件也好看多了。from BeautifulSoup import BeautifulSoup 改成from bs4 import BeautifulSoup method name也有改,參考。 ... 阅读全文
posted @ 2012-05-13 13:27 lexus 阅读(1530) 评论(1) 推荐(0)

摘要: Experimenting with Node.js - Jeff KreeftmeijerExperimenting with Node.jsIf you see extra mouse cursors moving around: don’t worry, they’re part of the demo. You can always disable them if you want.I’v... 阅读全文
posted @ 2012-05-13 12:53 lexus 阅读(246) 评论(0) 推荐(0)

摘要: Comparing Python JSON implementationsComparing Python JSON implementations Part 1 ‒ Introduction Go to page: Home Up First Next > Last Pages in this report: Introduction Basic JSON conformance Whites... 阅读全文
posted @ 2012-05-13 11:11 lexus 阅读(185) 评论(0) 推荐(0)

摘要: Flask-Sijax — Flask-Sijax 0.3.0 documentationSijax is a Python/jQuery library that makes AJAX easy to use in web applications. 阅读全文
posted @ 2012-05-13 10:13 lexus 阅读(355) 评论(0) 推荐(0)

摘要: JS对象与JSON格式数据相互转换(转)目前的项目数据交互几乎都用JQuery,所以处理流程是:前端页面数据-》JS对象-》jQuery提交-》python处理,另外一种就是倒过来。python肯定不能直接处理JS对象数据,所以要把JS对象转换成为python能处理的一种数据格式(通常是字典dict),同样,python取数据反馈到前端也要把字典数据转换成JS能处理的对象,这个中间转换数据格式通常... 阅读全文
posted @ 2012-05-13 10:04 lexus 阅读(629) 评论(0) 推荐(0)

摘要: Issue 132 - phantomjs - Passing variables to page for page.evaluate - headless WebKit with JavaScript API - Google Project HostingPassing variables to page for page.evaluatewill embedded in 1.6 relsea... 阅读全文
posted @ 2012-05-13 09:29 lexus 阅读(96) 评论(0) 推荐(0)

摘要: Underscore.string Version (2.0.0) 中文文档Underscore.string.js Version (2.0.0) 中文文档Javascript缺乏完整的字符串操作。Underscore.string.js试图填补这一空白。您可以在深入 JavaScript 中找到生成中方法列表正如名称指出的Underscore.string.js为 Underscore.js... 阅读全文
posted @ 2012-05-13 07:53 lexus 阅读(801) 评论(0) 推荐(0)