Cucumber face questions from time to time update

1     difference between the http and https

  1, https protocol ca need to apply for a certificate, http is not required

  2, http is the hypertext transfer protocol, https is encrypted with a security ssl transfer protocol.

  3, http and https use is completely different connections, with the port are not the same, the former is 80, which is 443

  4, http connection is very simple, is stateless;

    HTTPS protocol is constructed from SSL + HTTP protocol can be encrypted transmission, network authentication protocol than http protocol security.

2 achieved using the native forEach

Array.prototype.forEach=function(fn){
    for(let i=0;i<this.length;i++){ 
        fn.call(this,this[i],i,this)
    }
}


var a=[1,2,3]
a.forEach((el,index,arr)=>{
    console.log(el,index,arr)
})

Guess you like

Origin www.cnblogs.com/huang-gua123/p/12088347.html