javascript的面向对象的继承实现
<script> function Rectangle(w, h){ this.width = w; this.height = h; } Rectangle.prototype.area = function(){ return this.width * this.height; }&...
javascript的superclass继承
<script> function A(a){ this.x = a; } function B(a,b){ alert(a); this.superclass(a); this.y = b; } B.p...
Javascript window.open
最近项目当中遇到了一个javascript浏览器的兼容问题使用window.open打开新的窗口。以下是代码: function openMenuUrl(url, windowId){ if(windowId){ windowId = windowId ...