Small micro-channel program gets formid

The following is a small micro-channel program source. 
wxml: 
        <form Report-Submit = 'to true' bindsubmit = "formSubmit"> 

            <INPUT bindblur = "inputValue" value = '{{FormID}}'> </ INPUT> 
            <Button form-type = 'Submit' type = ' primary '> Get formId </ Button> 

        </ form> 

JS: 
Data: {         
        FormID:' ' 
    }, 
    formSubmit: function (Y) { 
        this.setData ({ 
            FormID: y.detail.formId 
        }); 
    } 

// OF : 52 Hz _Alice 
// link: HTTPS: //www.jianshu.com/p/5e171decffae 
// source: Jane books 
// book Jane copyright reserved by the authors, are reproduced in any form, please contact the author authorized and dated source.

  

Guess you like

Origin www.cnblogs.com/shaozhu520/p/11328412.html