微信小程序,小程序的一种,英文名Wechat Mini Program,是一种不需要下载安装即可使用的应用,它实现了应用“触手可及”的梦想,用户扫一扫或搜一下即可打开应用。 小程序单位换算关系 引入模板工具
 下载链接:https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html
 注册连接:https://mp.weixin.qq.com/cgi-bin/registermidpage?action=index&lang=zh_CN&token=小程序优点
小程序页面

wxml与wxss的语法和html与css基本一致小程序单位

 iphone6下1px=1rpx=0.5pt(rpx会在不同设备下转换、而px不会);导航栏配置

 该文件为app.json
事件绑定
 <button bindtap="newFn">你点我啊</button> <button catchtap="newFn">你点我啊</button> <button catch:tap="newFn">你点我啊</button> 
 <button data-me="3" catch:tap="newFn">你点我啊</button> 
模板引用
提高模板复用性;
<template name="a"> <view>我自己创建的模板</view> </template> 
template <import src="/pages/templates/a.wxml"/> <template is="a"></template> 
include 可以将目标文件除了 template 外的整个代码引入,相当于是拷贝到 include 位置 <include src="/pages/templates/a.wxml"/> 网络请求
    wx.request({       url: 'https://localhost:8989/getList', //仅为示例,并非真实的接口地址 // method:"post", success (res) { // 请求成功后执行!!!         console.log(res.data) } }) 练习——新闻列表
  onLoad: function (options) {     wx.request({       url:"https://localhost:8989/getData", // 这里的this会受到ajax影响       success:res=>{ this.setData({           newsData:res.data         }) } }) }, 
  onReachBottom: function () {     wx.request({       url:"https://localhost:8989/getData", // 这里的this会受到ajax影响       success:res=>{         res.data.forEach(re => { this.data.newsData.push(re) }) this.setData({           newsData:this.data.newsData         }) } }) }, 
// news/index.wxml <view class="myItem" wx:for="{{newsData}}" wx:key="key" bindtap="skip" data-id="{{item.id}}"> ... </view> ... // news/index.js skip(dataId){ this.setData({       myId : dataId.currentTarget.dataset.id     })     wx.navigateTo({       url: `/pages/detail/index?id=${this.data.myId}` }) }, ... // deatil/index.js   onLoad: function (option) {     console.log(option.id)     wx.request({       url: `https://localhost:8989/getDetail/${option.id}`,       success:res=>{ this.setData({           detailData:res.data         }) } }) }, 
本网页所有视频内容由 imoviebox边看边下-网页视频下载, iurlBox网页地址收藏管理器 下载并得到。
ImovieBox网页视频下载器 下载地址: ImovieBox网页视频下载器-最新版本下载
本文章由: imapbox邮箱云存储,邮箱网盘,ImageBox 图片批量下载器,网页图片批量下载专家,网页图片批量下载器,获取到文章图片,imoviebox网页视频批量下载器,下载视频内容,为您提供.
阅读和此文章类似的: 全球云计算
 官方软件产品操作指南 (170)
官方软件产品操作指南 (170)