前端代码:
<-找回密码->
提交
控制器:
angular.module('starter.ForgetCtrl', [])
.controller('ForgetCtrl',function($scope,ForgetService) {
$scope.submitMessage=function()
{
console.log($scope.phone);
console.log($scope.id);
//格式验证
console.log(checkPhone($scope.phone));
}
});


Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
在controller里面定义
$scope.sendData= {
前端绑定
<ion-item class="item-icon-left item-input-inset">
后台通过
$scope.sendData.phone
$scope.sendData.id
就能获取到值
用路由指定的 controller ?没看到哪里用了 ForgetCtrl 啊
请问这个问题你是怎么解决的呀