mvvm模式中怎么接受command传过来的参数
4 回答

手掌心
TA贡献1942条经验 获得超3个赞
不知道你是不是使用的Prism框架,如果是,那么DelegateCommand类型是一个无参数的Command,你应该用DelegateCommand类型,也就是使用下面的代码: class MainWindowViewModel:NotificationObject{ public DelegateCommand selectCommand { get; ...

繁华开满天机
TA贡献1816条经验 获得超4个赞
直接用ajax比较方便
后台的值用放到map中,键设置为result
$.ajax({
type: 'post',
url: URL,
data: JSON.stringify({
}),
contentType: "application/json; charset=utf-8",
dataType: 'json', //json text
success: function (data) {
data.result//这就是后台传过来的对象
}
});
- 4 回答
- 0 关注
- 657 浏览
添加回答
举报
0/150
提交
取消