Home  >  Article  >  WeChat Applet  >  WeChat Mini Program Example: Code Implementation for Form Submission

WeChat Mini Program Example: Code Implementation for Form Submission

不言
不言Original
2018-08-16 17:47:467087browse

The content of this article is about the WeChat applet example: the code implementation of form submission, which has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.


  
const app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    isShow:true
  },

  //登录
  denglu:function(e){
     let fromdate=e.detail.value;
     wx.request({
       data:fromdate,
       success:function(res){}
     })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    
  },

})

Note: Form submission is key-value matching based on the name attribute of the input

Related recommendations:

App() function in WeChat applet Detailed usage explanation

WeChat applet example: How to get the user’s openid (with code)

The above is the detailed content of WeChat Mini Program Example: Code Implementation for Form Submission. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn