|
html页面代码:
<ion-item ng-repeat="member in members|filter:search" class="item item-avatar">
<img ng-src="{{member.avatarUrl}}">
<h2>{{member.name}}</h2>
<p>{{member.gender}}/{{member.age}}/{{member.mobile}}</p>
<ion-option-button class="button-calm ion-ios-email-outline" ng-click="send(member.mobile)">
</ion-option-button>
controller部分代码:
document.addEventListener("deviceready",function(){
var options = {
replaceLineBreaks: false, // true to replace \n by a new line, false by default
android: {
intent: 'INTENT' // send SMS with the native android SMS messaging
//intent: '' // send SMS without open any other app
}
};
$cordovaSms
.send('member.mobile', 'content', options)
.then(function() {
alert("Success! SMS was sent")
}, function(error) {
// An error occurred
});
});
请问send()中怎么动态传递人员号码啊?member.mobile不管用 |
|