jQuery Layer mobile 彈出層

來源:互聯網
上載者:User

標籤:獨立   使用   方法   git   參考手冊   center   版本   自訂   cli   

layer mobile是為行動裝置(手機、平板等webkit核心瀏覽器/webview)量身定做的彈層支撐,採用Native JavaScript編寫,完全獨立於PC版的layer,您需要按照情境選擇使用。

  1. 無需依賴任何庫,只載入layer.m.js即可

  2. 小巧玲瓏,效能卓越、柔情似水…

  3. 具備無以倫比的自適應功能

  4. 靈活的皮膚自訂支撐,充分確保彈層風格多樣化

  5. 豐富、科學的介面,讓彈彈彈層無所不能

  6. 版本Layer mobile1.8

  7. 閑心賢

  8. github

線上執行個體

執行個體預覽 layer彈層組件移動版示範

執行個體預覽 layer彈層組件移動版線上DEMO

參考手冊

執行個體預覽 layer彈層組件移動版API

引入檔案
  1. <link href="layer.css" type="text/css" rel="stylesheet">
  2. <script src="layer.js">
複製使用方法
  1. <a onclick="test();" href="javascript:;">點擊詢問框</a>
  2. <script>
  3. function test() {
  4. layer.open({
  5. content: ‘你是想確認呢,還是想取消呢?‘,
  6. btn: [‘確認‘, ‘取消‘],
  7. shadeClose: false,
  8. yes: function() {
  9. layer.open({
  10. content: ‘你點了確認‘,
  11. time: 1
  12. });
  13. },
  14. no: function() {
  15. layer.open({
  16. content: ‘你選擇了取消‘,
  17. time: 1
  18. });
  19. }
  20. });
  21. }
  22. </script>
複製下載

 

jQuery Layer mobile 彈出層

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.