zoukankan      html  css  js  c++  java
  • jquery笔记


    // setInterval(function(){
    // console.log($(window).scrollTop())//获取滚动距离
    // },300)
    //
    // on("click") 和 click()的区别 : click是单一的事件,而on可以加多个事件及自定义事件,以及对应事件不同的触发不同的事件例:
    // $("div").on({
    // "click":function(){
    // alert(111);
    // },
    // "mouseover":function(){
    // alert(222);
    // }
    // })
    // off(event);取消事件,可以针对个别的事件
    //
    // $(".top").remove()//删除top
    // $(".top").appendTo($(".center"))//将top添加到center里面
    // $(".top").append($(".center"))//将center添加到top里面
    // $(".top").prependTo($(".center"))//将top添加到center内容的最前面
    // $(".top").prepend($(".center"))//将center添加到top内容的最前面
    //
    // $(".top").insertBefore($(".bottom"));//将top插入到bot前面
    // $(".top").before($(".bottom"));//将bot插入top前面
    // $(".top").insertAfter($(".bottom"));//将top插入到bot下面
    // $(".top").after($(".bottom"));//将bot插入到top下面
    //
    //width();//内容宽,不包括padding margin border
    //innerWidth();//包括内容宽,padding,不包括border和margin
    //outerWidth();//包括内容宽,padding,border,默认不包括margin,接收参数是否包括margin,并且能回去到隐藏的元素的值
    //get()//把jquery元素转换成原生的元素

    //

  • 相关阅读:
    算法初探
    OIer数学相关
    算法初探
    MySQL事务
    MySQL多表查询
    数据库的设计
    winform选择文件夹
    获取上次打开目录
    C#拆分中文和数字字符串
    uCharts如何设置双Y轴,左侧一个右侧一个,数据源与对应的Y轴绑定
  • 原文地址:https://www.cnblogs.com/week-1/p/6573000.html
Copyright © 2011-2022 走看看