코드는 당신에게 아이디어를 제공하기 위해 매우 간단합니다. 여기서는 말도 안되는 말을하지 않고 소스 코드를 제시합니다.
코드 사본은 다음과 같습니다.
<! doctype html>
<html>
<헤드>
<title> Wechat JS API Demo </title>
<meta http-equiv = "content-type"content = "text/html; charset = utf-8">
<link rel = "dns-prefetch"href = "http://mmbiz.qpic.cn">
<link rel = "dns-prefetch"href = "http://res.wx.qq.com">
<meta name = "viewport"content = "width = device-width, height = device-height, inital-scale = 1.0;">
<meta name = "Apple-Mobile-Web-Appable"컨텐츠 = "예">
<meta name = "Apple-Mobile-web-app-status-bar 스타일"컨텐츠 = "black">
<meta name = "형식 감지"내용 = "전화 = 아니오">
<스타일 유형 = "텍스트/CSS">
p {
패딩 : 5px 10px;
}
</스타일>
<script type = "text/javaScript"src = "weixinapi.js? v = 1"> </script>
</head>
<body>
<script language = "javaScript">
<!-
함수 class1 () {
this.name = "class1";
this.aaa = "aaa";
this.hownam = function () {
경고 (this.name);
}
}
함수 class2 () {
this.name = "class2";
}
var c1 = 새로운 class1 ();
var c2 = 새로운 class2 ();
//c1.hownam ();
c1. hownam.call (c2); // 객체 순열, 메소드
c1.aaa.call (c2); // 오류, 메서드 상속의 경우에만 속성이 지원되지 않습니다
->
</스크립트>
</body>
</html>
여기에서는 모든 사람을위한 아이디어를 소개하여 특정 아이디어를 자유롭게 연주 할 수 있습니다.