centos7上apache2配置https

本文将告诉你怎么去配置apache2的https

前提条件:

  1. 安装了apache2
  2. apache2所在目录是/usr/local/
  3. ssl证书已上传到了apache2/conf 目录下(一般是一个zip包) 如果名称不叫ssl.zip 请把名称改成ssl.zip (mv xxxx.zip ssl.zip)

    查看更多

javascript获取函数名称、函数参数、对象属性名称的代码实例

这篇文章主要讲解 javascript获取函数名称、函数参数、对象属性名称的代码实例

一、获取函数名称的3种实现方法

实例1:

在js权威指南中看到的一个方法:

1
2
3
function.prototype.getname = function(){
return this.name || this.tostring().match(/function\s(()(/)[1]
}

查看更多

js进行类型判断 Object.prototype.toString.call()

这篇文章主要讲解 js进行类型判断 Object.prototype.toString.call()

首先看一段ECMA中对Object.prototype.toString的解释:
Object.prototype.toString( )
When the toString method is called, the following steps are taken:

  1. Get the [[Class]] property of this object.
  2. Compute a string value by concatenating the three strings “[object “, Result (1), and “]”.
  3. Return Result (2)

    查看更多