1、<h4 id="fname" class="foodName"> </h4> 1、$("#fname").text(obj.Dish.FoodName);
2、<div class="foodPic"><img src="" id="fpic"></div>
2、if (obj.Dish.Photo == null) {
$("#fpic").prop("src", "/img/dinner-oic2.png");
} else {
$("#fpic").prop("src", obj.Dish.Photo);
}
时间: 2024-10-05 21:34:18