先来看解释 : (PHP 4, PHP 5, PHP 7) call_user_func — 把第一个参数作为回调函数调用 通过函数的方式回调<?php function barber($type){ echo "you wanted a $type haircut, no problem\n";} ...
分类:
其他好文 时间:
2020-07-02 18:30:36
阅读次数:
63
var type = function (o){ var s = Object.prototype.toString.call(o); return s.match(/\[object (.*?)\]/)[1].toLowerCase(); }; ['Null', 'Undefined', 'Obj ...
分类:
Web程序 时间:
2020-07-02 14:51:56
阅读次数:
111
1.保证虚拟机安装Redis 2.修改Redis配置文件 2.1 关闭Redis配置保护2.2 注释bind绑定IP2.3 设置Redis访问密码 3. 修改虚拟机设置 3.1 添加主机端口转发虚拟机 4. 关闭虚拟机防火墙 ...
分类:
其他好文 时间:
2020-07-02 10:43:07
阅读次数:
114
#!/bin/bash yum -y install epel-release yum -y update yum -y remove firewalld yum -y install iptables iptables-services yum -y install gcc vim wget ma ...
分类:
Web程序 时间:
2020-07-01 20:32:05
阅读次数:
238
捕获异常 1.读写文件的时候有很多容易出错的地方;如果你要打开的文件不存在,就会得到一个IOerror: >>> find = open('bad_file.txt') Traceback (most recent call last): File "<stdin>", line 1, in <mo ...
分类:
编程语言 时间:
2020-07-01 20:20:46
阅读次数:
82
其中:2env为使用virtualenv创建的虚拟环境, lianxi目录为我已下载好各类的离线库包(按自己的使用需要去下载),ceshi4.txt是我本次想要安装的库列表(2env) [root@xxxx]$ ./2env/bin/python wsgi.py[warning] no local ...
分类:
数据库 时间:
2020-07-01 20:00:30
阅读次数:
58
virtualenv -p /usr/local/bin/python2.7 2env Running virtualenv with interpreter /usr/local/bin/python2.7Traceback (most recent call last): File "/usr/ ...
分类:
编程语言 时间:
2020-07-01 19:57:57
阅读次数:
64
<script>// 创建对象:var person = { firstName: "Bill", lastName : "Gates", id : 678, fullName : function() { return this.firstName + " " + this.lastName; } ...
分类:
其他好文 时间:
2020-07-01 14:22:09
阅读次数:
57
apply plugin: 'com.android.application' buildscript { repositories { maven{ url'http://maven.aliyun.com/nexus/content/groups/public/' } maven{ url'htt ...
分类:
移动开发 时间:
2020-07-01 12:50:02
阅读次数:
77
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>RunJS</title> <script id="jquery_183" type="t ...
分类:
Web程序 时间:
2020-06-30 20:58:31
阅读次数:
251