请问单选框问题,代码执行到打印出1之后,下边的就不执行了,为毛

提问 未结
0 193
吃辣条的小龙虾
悬赏:50飞吻
XiuGai(Id)
function XiuGai(ids) {
//拿到一条编辑的数据
var ajaxinfor = {
url: 'SignupManage/GetModelProject?id=' + ids,
}
commonFn(ajaxinfor, function (res) {
$('input[name="projectName"]').val(res.name)
$('input[name="starttime"]').val(solveTime(res.startTime))
$('input[name="endtime"]').val(solveTime(res.endTime));
$('input[name="publictime"]').val(solveTime(res.publishTime));
$('input[name="zhiyuan"]').val(res.volunteerNum);
console.log(1)
console.log($(".switch").find("input[value='"+res.canUpload+"']"))
$('.switch').find("input[name='Switch'][value='"+res.canUpload+"']").prop("checked","checked");
// $(".switch").find("input[value='"+res.canUpload+"']").attr("checked",true);
// $('input[value='+res.canUpload +']').attr("checked","checked");
consloe.log(2)
form.render('radio');
console.log(3)
// console.log(res.canUpload)
$('#miaoshu').val(res.descript);
// layedit.build('miaoshu');
$('textarea#tongzhishu').val(res.tongZhiShuTemplate);
// layedit.build('tongzhishu');
$('textarea#ganxiexin').val(res.ganXieXinTemplate);
// layedit.build('ganxiexin');
})
回帖
  • 消灭零回复