JS 中的 Html 拼接

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_32405433/article/details/78229562
html += '<tr>' +
    '<td>' + deparmentName + '</td>' +
    '<td>' + pianquName + '</td>' +
    '<td>' + regionName + '</td>' +
    '<td>' + orderTypeName + '</td>' +
    '<td>' + data[i].userName + '</td>'+
     '<td>' + userRoleName + '</td>'+
    /*'<td id=\'userRoleByUserIdSelf'+i+'\'>' + data[i].userId + '</td>' + */
    $.ajax({
        url: "../completionRate/getUserRoleName",
        type: "POST",
        data: {
            userId: data[i].userId
        },
        async:false,
        dataType: "json",
        success: function (userRole) {
            html += '<td>' + userRole + '</td>';
        }
    });
     html +='<td>' + data[i].selfStandOrderRemoveOld + '</td>' +
    '<td>' + data[i].selfStandIntimeFinishOrderPlanEndTime+ '</td>' +
 
    '<td>' + toNum((data[i].selfStandIntimeFinishOrderEndTime / data[i].selfStandOrderRemoveOld * 100).toFixed(2)) + "%"+ '</td>'+
'<tr>';

猜你喜欢

转载自blog.csdn.net/qq_32405433/article/details/78229562

相关文章