<view class="container">
<form bindsubmit="tj">
<image src="{ {src}}" data-t="1" bindtap="huantu"/>
<input name='mz' placeholder="请输入图片名称"/>
<button type="default" form-type="submit">提交</button>
<button type="primary" bindtap="huantu" data-t="2" form-type="reset">重置</button>
</form>
</view>
-----------------------------------------
let { log } = console;
Page({
data: {
e: {},
src: '/images/6.png',
tempFilePaths:''
},
huantu(e) {
let that = this;
log(e.currentTarget.dataset)
if (e.currentTarget.dataset.t == 1) {
wx.choos