模板绑定图片

$("#auInput").kendoAutoComplete({
 dataSource: [
  {id:1, name:"Neo"},
  {id:2, name:"Shelly"}
 ],
 dataTextField: "name",
 template: kendo.template("<span><img src='img/users/#= id #.jpg' /> #= name #</span>")
});

猜你喜欢

转载自www.cnblogs.com/chengshixiaonongming/p/10373101.html
0条评论
添加一条新回复