2018-06-27发表2024-11-18更新Development / JavaScript9 分钟读完 (大约1275个字)JavaScript性能优化循环 For循环 123for (var i = 0; i < 10; i++) { // do something} For/In循环 12345// TODO 不推荐,相同的迭代次数,性能是其他三种的1/7var person = {fname: "John", lname: "Doe", age: 25};for (x in person) { txt = txt + person[x];}阅读更多
2018-06-21发表2024-11-18更新Development / JavaScript31 分钟读完 (大约4575个字)AngularJS的基本架构与相关概念Base Architecture of AngularJSOfficial diagram of introduction for AngularJS:阅读更多
2018-06-20发表2024-11-18更新Development / Python14 分钟读完 (大约2113个字)Django中的中间件机制在这篇文章中,将会介绍到以下内容: 什么是中间件MiddleWare 中间件的运行过程 编写中间件时需要注意的内容阅读更多
2017-10-30发表2024-11-18更新Development / JavaScript6 分钟读完 (大约939个字)ClipBoardjs.min.js链接:https://clipboardjs.com/ clipboard.jsA modern approach to copy text to clipboard No Flash. No frameworks. Just 3kb gzipped阅读更多
2017-10-30发表2024-11-18更新Development / Python6 分钟读完 (大约877个字)使用Python编写的生命游戏12345678910#!/usr/bin/python#encoding=utf-8'''Conway 's game of life , python version using Tkinterdetails of this game:http://en.wikipedia.org/wiki/Conway%27s_Game_of_Lifeauthor : dawn110110@gmail.comstart date : 2012-Jan-18'''from Tkinter import *阅读更多
2017-09-04发表2024-11-18更新Development / Python25 分钟读完 (大约3768个字)Python面向对象基础类的定义类的定义的语法 123456class ClassName: <statement-1> ... ... ... <statement-N>阅读更多
2017-09-01发表2024-11-18更新Development / Python23 分钟读完 (大约3463个字)WSGI简介原文链接 WSGI是什么WSGI的全称是Web Server Gateway Interface,翻译过来就是Web服务器网关接口。具体的来说,*WSGI是一个规范,定义了Web服务器如何与Python应用程序进行交互,使得使用Python写的Web应用程序可以和Web服务器对接起来*。WSGI一开始是在PEP-0333中定义的,最新版本是在Python的PEP-3333定义的。 对于初学者来说,上面那段就是废话,说了跟没说一样。本文的主要内容就是说清楚,WSGI到底是如何工作的。阅读更多