Der Code ist sehr einfach, nur um Ihnen eine Idee zu geben. Ich werde hier nicht viel Unsinn sprechen, sondern nur den Quellcode präsentieren:
Die Codekopie lautet wie folgt:
<! DocType html>
<html>
<kopf>
<title> Wechat JS API Demo </title>
<meta http-äquiv = "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 = Gerätebidth, Höhe = Gerätehöhe, Inital-Scale = 1,0;">
<meta name = "Apple-Mobile-Web-App-capable" content = "yes">
<meta name = "Apple-Mobile-Web-app-status-bar" content = "schwarz">
<meta name = "format-detektion" content = "telefon = no">
<style type = "text/css">
P {
Polsterung: 5px 10px;
}
</style>
<script type = "text/javaScript" src = "wixinapi.js? v = 1"> </script>
</head>
<body>
<script Language = "JavaScript">
<!-
Funktion class1 () {
this.name = "class1";
this.aaa = "aaa";
this.shownam = function () {
alarm (this.name);
}
}
Funktion class2 () {
this.name = "class2";
}
var c1 = neuer class1 ();
var c2 = neuer class2 ();
//c1.shownam ();
C1.Shownam.call (C2); // Objektpermutation für die Methode
C1.aaa.call (C2); // Fehler, nur für die Vererbung der Methode werden Attribute nicht unterstützt
->
</script>
</body>
</html>
Hier stelle ich gerade die Ideen für alle vor, damit Sie frei mit Ihren spezifischen Ideen spielen können.