橱窗的光
Follow

After following, you can keep track of his dynamic information in a timely manner

Course notes
  • Courses in the relevant section:jQuery common event operations

    $().事件类型(事件处理函数fn); //设置事件 $().事件类型(); //触发事件执行 事件类型:click、keyup、keydown、mouseover、mouseout、blur、focus等等 例如:$(‘div’).click(function(){事件触发过程this});

    2016-11-230个赞

  • Courses in the relevant section:jQuery node append

    append(content):向每个匹配的元素内部后置追加内容 prepend(content):向每个匹配的元素内部前置追加内容 appendTo(content):把所有匹配的元素后置追加到另一个、指定的元素集合中 prependTo(content):把所有匹配的元素前置追加到另一个、指定的元素集合中

    2016-11-230个赞

  • Courses in the relevant section:jQuery node replacement

    $("select").replaceWith(content); $('select')被content替换 replaceAll(selector):用匹配的元素替换掉所有selector匹配到的元素 $('content').replaceAll(select); 用content主动替换select元素

    2016-11-230个赞