摘要:
function Person(name, arg) { this.name = name this.arg = arg } Person.prototype.setName = function () { console.log('this.name:', this.name) }const Ma 阅读全文
posted @ 2020-05-14 17:35
acttan
阅读(98)
评论(0)
推荐(0)
摘要:
方法一: function deepClone(obj) { const result = obj.constructor Array ? [] : {} //判断obj是否是数组,然后创建数组或者对象 if(obj && typeof obj 'object'){ for (let key in 阅读全文
posted @ 2020-05-14 15:52
acttan
阅读(430)
评论(0)
推荐(0)
摘要:
跨域,指的是浏览器不能执行其他网站的脚本。它是由浏览器的同源策略造成的,是浏览器施加的安全限制。 所谓同源是指,域名,协议,端口均相同,只要有一个不同,就是跨域。不明白没关系,举个栗子: http://www.123.com/index.html 调用 http://www.123.com/serv 阅读全文
posted @ 2020-05-14 11:45
acttan
阅读(267)
评论(0)
推荐(0)

浙公网安备 33010602011771号