索菲亚呀吧 关注:1贴子:522

回复:漫步医网之后用到的

取消只看楼主收藏回复

input类型为number的时候除了数字都输不进去啊。。。。。唉~弄了好几小时


IP属地:北京34楼2016-05-06 16:17
回复
    index()也是个jQuery方法


    IP属地:北京35楼2016-05-06 17:23
    回复
      display:none到block iframe重新“加载”,用 height:0;overflow:hidden;替换,完美解决。


      IP属地:北京36楼2016-05-09 09:58
      回复
        object标签可以取代iframe


        IP属地:北京37楼2016-05-09 12:26
        回复
          jQuery的detach(),empty(),remove();移除html标签;


          IP属地:北京38楼2016-05-11 10:44
          回复
            http://caniuse.com/


            IP属地:北京39楼2016-05-17 18:16
            收起回复
              检测设备是在线还是离线,HTML5为此顶一个一个navigator.onLine属性,下面是用法:
              if(Navigator.onLine){
              console.log("online");
              }else{
              console.log("offline");
              }


              IP属地:北京40楼2016-05-19 16:02
              回复
                封装jQuery方法,调用jQuery方法 看图;


                IP属地:北京42楼2016-05-27 17:46
                回复
                  js中数组遍历for与for in区别(强烈建议不要使用for in遍历数组)
                  http://www.tuicool.com/articles/3meE3a


                  IP属地:北京43楼2016-06-01 09:54
                  回复
                    nextSibling foreach()


                    IP属地:北京45楼2016-06-01 09:55
                    回复
                      // 打乱排序
                      Array.prototype.shuffle = function() {
                      for (var j, x, i = this.length; i; j = parseInt(Math.random() * i), x = this[--i], this[i] = this[j], this[j] = x);
                      return this;
                      };


                      IP属地:北京49楼2016-08-12 11:00
                      回复
                        Js屏蔽网页复制,不能使用右键菜单,禁止复制网页内容,不能选中内容,右键不让用,无法拖拽选择,这么多功能,用JS一句代码就搞定了,肯定能很多朋友不喜欢,不过只是为了研究下js:
                        1 <body oncontextmenu="return false" onselectstart="return false" ondragstart="return false"onbeforecopy="return false" oncopy=document.selection.empty() onselect=document.selection.empty() >
                        2 O(∩_∩)O~
                        3 </body>


                        IP属地:北京51楼2016-08-18 16:54
                        回复
                          Box.prototype.getByClass = function(sClass){
                          var aEle=document.getElementsByTagName('*');
                          var aResult=[];
                          var re=new RegExp('\\b'+sClass+'\\b', 'i');
                          for(var i=0;i<aEle.length;i++){
                          if(re.test(aEle[i].className)){
                          aResult.push(aEle[i]);
                          };
                          };
                          return aResult;
                          };
                          getByClass()高级的兼容写法


                          IP属地:北京52楼2016-10-17 11:12
                          回复