设置COOKIE setcookie ( string $name [, string $value = "" [, int $expire = 0 [, string $path = "" [, string $domain = "" [, bool$secure = false [, bool& ...
分类:
其他好文 时间:
2019-03-01 13:00:28
阅读次数:
200
Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social n ...
分类:
其他好文 时间:
2019-03-01 12:32:57
阅读次数:
122
两个点之间的路线是使用“Marker”点连接起来的,目前还没找到改变点颜色的方法,测试过使用setStyle没有效果。 <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta na ...
是时候回顾一下Python的函数传参方式了。 Python的传参方式既不是pass by value(传值),也不是pass by reference(传引用),而是pass by object。 Python中每个object都有"type", 和“identifier”: 也有自己的name 但 ...
分类:
编程语言 时间:
2019-03-01 09:19:42
阅读次数:
210
原形函数之prototype 当函数以构造函数形式调用时,他创建的对象都会有个隐藏属性我们称为原形函数,我们可以用__proto__访问该构造的原形对象 function ff (){ } var c = new ff() //prototype是函数的属性值,而__proto__是对象的属性值 c ...
分类:
其他好文 时间:
2019-02-28 23:08:22
阅读次数:
207
arguments对象是所有(非箭头)函数中都可用的局部变量,可以使用arguments对象在函数中引用函数的参数。 该对象可以获取函数的参数值和参数长度。 如:arguments[0]、arguments[1]、arguments.length arguments对象不是一个Array,它类似于A ...
分类:
其他好文 时间:
2019-02-28 21:16:59
阅读次数:
183
JQ:相对比较简便 像这种不兼容的获取方式,我们要做一下兼容,封装一个函数 网页工作区域的高度和宽度 ...
分类:
Web程序 时间:
2019-02-28 21:14:58
阅读次数:
232
题目: To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the sa ...
分类:
其他好文 时间:
2019-02-28 21:06:46
阅读次数:
237
主要内容 1. Flask 请求上下文管理 2. Flask 应用上下文管理 1. Flask请求上下文管理 1.1 Flask请求上文 当请求进来时,Flask实例化对象app执行__call__ def __call__(self, environ, start_response): """Th ...
分类:
其他好文 时间:
2019-02-28 18:29:41
阅读次数:
168
现在构建任何类型的软件项目最流行的方法这是使用类。在这篇文章中,探讨用 JavaScript 实现类的不同方法,以及如何构建类的结构。首先从深入研究原型工作原理,并分析在流行库中模拟基于类的继承的方法。 接下来是讲如何将新的语法转制为浏览器识别的语法,以及在 Babel 和 TypeScript 中 ...
分类:
编程语言 时间:
2019-02-28 18:20:10
阅读次数:
202