gmbjzg
// index.wxml
<form bindsubmit="onSubmit">
    <input type="text" placeholder="请输入账号" name="username"/>
    <input type="text" placeholder="请输入密码" name="password"/>
    <button form-type="submit" id="regist">注册</button>
    <button form-type="submit" id="login">登录</button>
</form>

// index.js
onSubmit(res){
	console.log(res)
}

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2021-12-23
  • 2021-11-20
  • 2021-12-08
  • 2021-12-13
  • 2021-12-23
猜你喜欢
  • 2021-11-06
  • 2021-12-01
  • 2021-12-08
  • 2021-12-08
  • 2021-11-20
  • 2021-12-11
  • 2021-11-30
相关资源
相似解决方案