zepto.js 總結

來源:互聯網
上載者:User

標籤:

zepto.js 中的注意事項 ,詳見:http://www.cnblogs.com/samwu/archive/2013/06/06/3121649.html

 

zepto被棄用的原因:詳見:http://www.bootcss.com/article/why-we-dropped-zepto/

 

 

zepto.js api: http://www.css88.com/doc/zeptojs/#

自訂build zepto.js  步驟:

一  在github上下載zepto的源碼

二 找到make檔案,找到modules = (env[‘MODULES‘] || ‘zepto event ajax form ie‘).split(‘ ‘),大概在41行,可以看到預設包含的模組

修改為modules = (env[‘MODULES‘] || ‘zepto event ajax form ie fx detect fx_methods data touch assets selector‘).split(‘ ‘),包含自己需要用到的所有的模組

三 安裝 node.js

四  安裝 npm

五 到 zepto.js的根目錄下---zepto-master目錄下,開啟命令列執行代碼:npm run-scrcipt dist 就會在目前的目錄下產生dist檔案,開啟dist檔案就有產生的zepto.js和zepto.min.js

 

zepto.js官方的檔案中的包含的模組

 

 

從github上下下載的源碼,包含的模組

 

zepto.js 總結

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.