var obj = {
name:"一个"
}
function say(firstName,secondName,flag) {
console.log(`${firstName}${this.name}${secondName},座右铭是:${flag}`);
}
say.call(obj,"我是","前端","no bug no erro!")
say.apply(obj,["我是","前端","no bug no erro!"])
var fn=say.bind(obj)
fn("我是","前端","no bug no erro!")
var fn2=say.bind(obj,"你是")
fn2("前端","no bug no erro!")
// 生成一个随机数
console.log(Math.random().toString(32).slice(2));