当前位置:首页 > 微信 > 正文

微信小程序把玩(十三)progress组件

原文:微信小程序把玩(十三)progress组件

这里写图片描述

进度条描述的是一种加载的状态,比如软件升级下载进度, 视频,图片下载进度…

主要属性:

这里写图片描述

wxml

<progress 
    percent="80"
    show-info="true" 
    stroke-width="5"
    color="red"
    active="true"/>
$(function () { $(‘pre.prettyprint code‘).each(function () { var lines = $(this).text().split(‘\n‘).length; var $numbering = $(‘
    ‘).addClass(‘pre-numbering‘).hide(); $(this).addClass(‘has-numbering‘).parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($(‘
  • ‘).text(i)); }; $numbering.fadeIn(1700); }); });