home.ts
public class WeatherViewModel
{
public string Day { get; set; }
public string WheatherPicturePath { get; set; }
public string Temperature { get; set; }
public string Description { get; set; }
}
public class BindedDataContext
{
public ObservableCollection<WeatherViewModel> WeeklyWeather { get; set; }
public WeatherViewModel SelectedDailyWeather { get; set; }
//...
}
home.html
driver.findElement(By.id("avatar")).click()
答案 0 :(得分:1)
尝试
contact = {
displayName:null,
phoneNumbers:null,
birthday:null
};
selectContact(){
this.contacts.pickContact().then((contact)=>{
alert("contacts:-->"+ JSON.stringify(contact));
this.contact.displayName = contact.displayName;
this.contact.phoneNumbers = contact.phoneNumbers[0].value;
contact.birthday = contact.birthday;
});
}
注意:属性名称检查并从响应分配。