zoukankan      html  css  js  c++  java
  • wechat-wxparse 使用

    github地址

    https://github.com/ianzhi/wxParse
    

    引入插件

    {
      "usingComponents": {
        "wxparse": "/components/wxparse/wxparse"
      }
    }
    

    页面html

    <view class="content">
          <wxparse data="{{outData}}" type="html" padding="5"></wxparse>
    </view>
    

    css

    .content {
         710rpx;
        height: auto;
        padding-top: 25rpx;
        padding-bottom: 10rpx;
        margin: 0 auto;
        image {
             710rpx;
            height: auto;
        }
    }
    

    js

    import Storage from "../../common/auth/Storage";
    import { initNoPage } from "../../common/requestData";
    import tips from "../../common/tips";
    import request from "../../common/request";
    const app = getApp();
    
    
    Page({
    
      /**
       * 页面的初始数据
       */
      data: {
    
      },
    
      /**
       * 生命周期函数--监听页面加载
       */
      onLoad: function (options) {
    
      },
    
      /**
       * 生命周期函数--监听页面初次渲染完成
       */
      onReady: function () {
    
      },
    
      /**
       * 生命周期函数--监听页面显示
       */
      onShow: function () {
        initNoPage(this, [{ api: "getIntro", inData: {}, outDataName: "outData" }]);
      },
    
      /**
       * 生命周期函数--监听页面隐藏
       */
      onHide: function () {
    
      },
    
      /**
       * 生命周期函数--监听页面卸载
       */
      onUnload: function () {
    
      },
    
      /**
       * 页面相关事件处理函数--监听用户下拉动作
       */
      onPullDownRefresh: function () {
    
      },
    
      /**
       * 页面上拉触底事件的处理函数
       */
      onReachBottom: function () {
    
      },
    
      /**
       * 用户点击右上角分享
       */
      onShareAppMessage: function () {
    
      }
    })
    

  • 相关阅读:
    系统设计实现
    反编译
    android layout analyze
    2016.7.20-notes
    如何认识刘昊然?
    leetcode-中等-队列-二叉树的层次遍历
    leetcode-简单-栈-逆波兰表达式
    leetcode-简单-栈-有效的括号
    队列-链式队列
    队列-循环队列-顺序存储
  • 原文地址:https://www.cnblogs.com/jiqing9006/p/12915678.html
Copyright © 2011-2022 走看看