原创 碰撞運動js

window.οnlοad=function(){var oCrash=document.getElementById('crash');var s

原创 圓周運動js

<!doctype html> <html lang="en"> <head>     <meta charset="UTF-8">     <ti

原创 table佈局的優缺點與id與class的區別

一、table佈局的優缺點: Table的缺點 1、Table要比其它html標記佔更多的字節。(延遲下載時間,佔用服務器更多的流量資源。) 2、T

原创 js簡單運動

<!doctype html> <html lang="en"> <head><meta charset="UTF-8"><title>moveme

原创 css

CSS的注意事項 1.模塊最好不要混用margin-top和margin-bottom,統一使用margin-top或margin-bottom,因

原创 seajs學習(1)----什麼是系統

在生活和工作中,我們會接觸到大量系統:自然界生態系統、計算機操作系統、軟件辦公系統,還有教育系統、金融系統、網絡系統、理論系統等等。究竟什麼是系統呢? 來看下維基百科的解釋: 系統泛指由一羣有關連的個體組成,根據預先編排好的規則工作,

原创 解決本地項目上傳到github時$git push -u origin master error failed to push some refs...等錯誤

使用命令: 1、touch README.md 2、git init 3、git add . 4、git commit -m "test" 5、git remote add origin master 6.git push -u orig

原创 代碼語義化

一、創建良好的標記(代碼語義化) (1)<title></title>中的內容可以明顯的提高頁面在搜索引擎中的排名 注意:根據文檔內容的結構而選擇h

原创 css的position屬性值

CSS樣式表中的position屬性詳細說明 點評:CSS position屬性使用說明,需要的朋友可以參考下。 在CSS中關於position定位

原创 原生js螺旋運動

window.οnlοad=function(){var oSpiral=document.getElementById('spiral');var

原创 seajs學習(2)----CMD 模塊定義規範

在 Sea.js 中,所有 JavaScript 模塊都遵循 CMD(Common Module Definition) 模塊定義規範。該規範明確了模塊的基本書寫格式和基本交互規則。 在 CMD 規範中,一個模塊就是一個文件。代碼的書寫

原创 seajs學習(3)----模塊標識

模塊標識是一個字符串,用來標識模塊。在 require、 require.async 等加載函數中,第一個參數都是模塊標識。 Sea.js 中的模塊標識是 CommonJS 模塊標識 的超集: 一個模塊標識由斜線(/)分隔的多項組成。

原创 seajs學習(4)----require 書寫約定

seajs學習(4)----require 書寫約定 1. 正確拼寫 模塊 factory 構造方法的第一個參數 必須 命名爲 require 。 // 錯誤! define(function(req) { // ... });

原创 通過className獲取元素的js

//只適用於獲取只有一個class名的元素 function getByClassName (oParent, subClass) {     va

原创 有方向的運動js

<!doctype html> <html lang="en"> <head>     <meta charset="UTF-8">     <ti