-3
如何在文本框1和文本框2在离子通过点击按钮离子(角)转乘2倍文本框的值
如何在文本框1和文本框2在离子通过点击按钮离子(角)转乘2倍文本框的值
//add two ng-models for both textboxes
//Assign the values to variables
var txt1 = $scope.textbox1 ;
var txt2 = $scope.textbox2;
//swap the values
$scope.textbox1 = txt2;
$scope.textbox2 = txt2;
使用按钮交换文本