Ai
1 Star 0 Fork 0

apaks/javascript

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
prototype.html 1.02 KB
Copy Edit Raw Blame History
apaks authored 2021-05-12 16:02 +08:00 . first commit
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div id="app">my app</div>
<script>
function Parent() {
console.log('I am Parent :>> ');
}
var child_1 = new Parent();
console.log('Parent :>> ', Parent);
console.log('Parent.prototype :>> ', Parent.prototype);
console.log('child_1 :>> ', child_1);
console.log('child_1.__proto__ :>> ', child_1.__proto__);
console.log('Parent.prototype === child_1.__proto__ :>> ', Parent.prototype === child_1.__proto__);
//
//
//
//
//
//
function test() {
console.log('I am test :>> ');
}
console.log('test.__proto__ :>> ', test.__proto__);
console.log('Function.prototype :>> ', Function.prototype);
console.log('test.__proto__ === Function.prototype :>> ', test.__proto__ === Function.prototype);
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/apaks/javascript.git
git@gitee.com:apaks/javascript.git
apaks
javascript
javascript
master

Search