var num = '01';
alert(~~num);
z
這裏(~~str)就能去處數字前面的0;
var num = '01';
alert(~~num);
z
這裏(~~str)就能去處數字前面的0;
//獲取當前節點的父級節點 console.log(obj.parentNode); //獲取當前節點的父級元素 console.log(obj.parentElement); //獲取當前節
跳動愛心主要用了些css3的動畫效果@keyframe,實現後的效果如下圖(截圖效果比較差)。代碼再往下滑。 1.html代碼 <html> <head> <title>跳動愛心</title>
書名: CSS: The Missing Manual 作者: David McFarland amazon link: www.amaz