zoukankan      html  css  js  c++  java
  • 2020.2.1

    今天对微信开发者工具的基本框架进行了了解和学习,对基本的执行情况进行了学习,知道了它的大致结构,该如何去写,这里应该写什么内容,并且掺杂跳转页面,进度条,滚动条等小的方面学习了一下

    app.json

    {
    "pages": [
    "pages/index/index",
    "pages/logs/logs",
    "mypage/mypage/mypage"
    ],
    "window": {
    "backgroundTextStyle": "light",
    "navigationBarBackgroundColor": "#fff",
    "navigationBarTitleText": "微信",
    "navigationBarTextStyle": "black",
    "enablePullDownRefresh": true
    },
    "tabBar": {
    "color": "#000",
    "selectedColor": "#56abe4",
    "backgroundColor": "#fff",
    "borderStyle": "white",
    "list": [
    {
    "pagePath": "pages/index/index",
    "text": "首页",
    "iconPath": "images/latest.png",
    "selectedIconPath": "images/lastest_on.png"
    },
    {
    "pagePath": "pages/logs/logs",
    "text": "账单",
    "iconPath": "images/hotest.png",
    "selectedIconPath": "images/hotest_on.png"
    },
    {
    "pagePath": "pages/mypage/mypage",
    "text": "个人中心",
    "iconPath": "images/hotest.png",
    "selectedIconPath": "images/hotest_on.png"
    }
    ]
    },
    "networkTimeout": {
    "request": 10000,
    "connectSocket": 1000,
    "uploadFile": 1000,
    "downloadFile": 10000
    },
    "debug": true,
    "style": "v2",
    "sitemapLocation": "sitemap.json"
    }
    mypage。js
    Page({
    data:{
    mytext:'my first text'
    },
    onLoad:function(opt){
    console.log('执行onLoad');
    this.anyfunction();
    },
    anyfunction:function(){
    console.log('执行anyfunction');
    this.setData(
    {
    mytext:200
    }
    );
    }

    })
    mypage.wxml
    <view class="container">
    <text>Hellow wechat app</text>
    <button type="default" bindtap="anyfunction">测试</<button></button>
    <text>{{mytext}}</text>
    </view>
  • 相关阅读:
    Android登录界面实现
    博客园自定义模板
    HttpClient + Jsoup模拟登录教务处并获取课表
    sublime编写markdown文件中Ctrl+B的作用
    Java学习路线图
    数学建模比赛论文的基本结构
    GitBash上传代码不计入贡献的问题处理
    Android知识体系图
    Java文件处理:分离全国省市县ID(数据来自和风天气)
    poj3484 Showstopper 二分
  • 原文地址:https://www.cnblogs.com/PSLQYZ/p/12250625.html
Copyright © 2011-2022 走看看