step1: gerapy下載 pip3 install gerapy 查看是否安裝成功 gerapy step2: 初始化gerapy 進入到指定目錄下(例如桌面)執(zhí)行如下...
cookie <!DOCTYPE html> cookie //cookie的讀和寫需要在服務(wù)器環(huán)境下 //寫cookie //參數(shù):名稱俊啼、值剂陡、有效期幾天、路徑 $.cook...
節(jié)點操作 <!DOCTYPE html> 節(jié)點操作 $(function(){ var $span = $(' span元素 '); var $p = $(' p段落元素 '...
事件冒泡 <!DOCTYPE html> 事件冒泡 .grandfather{ width: 300px; height: 300px; background-color: ...
元素絕對位置 <!DOCTYPE html> 元素絕對位置 .con{ width: 600px; height: 600px; margin: 50px auto 0; }...
jQuery特殊效果 <!DOCTYPE html> jQuery特殊效果 .box{ width: 200px; height: 200px; background-col...
jQuery做選項卡 <!DOCTYPE html> jQuery做選項卡 .btns{ width: 500px; height: 5...
選擇集轉(zhuǎn)移 <!DOCTYPE html> 選擇集轉(zhuǎn)移 $(function(){ //prev()是同級的上一個元素涯鲁,prevAll()是同級的上面所有的元素 //next...
新增選擇器 <!DOCTYPE html> 新增選擇器 window.onload = function(){ var oDiv = document.querySelect...
構(gòu)造函數(shù) function Person(name,age,job){ this.name = name; this.age = age; this.job = job; t...
獲取地址欄參數(shù) <!DOCTYPE html> 獲取地址欄參數(shù) window.onload = function(){ //url?aa=tom#12 var data = ...
閉包做私有變量計數(shù)器 閉包的用途:私有變量計數(shù) ..................................................................
用變量的方式定義函數(shù) /* 原來的寫法:可以提前 myAlert(); function myAlert(){ alert('hello!'); }*/ //函數(shù)用變量方式定...
時鐘 <!DOCTYPE html> 時鐘 window.onload = function(){ var oBox = document.getElementById('b...