表中没有数据。我想把价格上的红色圆圈上的价格带到桌上。我不知道路径错误还是变量错误。
function get_mask_list() {
var maskRef = database.ref('Admin/Center/' + userInfo.uid);
maskRef.on('value', on_child_added)
}
function on_child_added(data) {
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth() + 1; //January is 0!
var yyyy = today.getFullYear();
if (dd < 10) {
dd = '0' + dd
}
if (mm < 10) {
mm = '0' + mm
}
today = yyyy + '.' + mm + '.' + dd;
}
function on_child_added(data) {
var content = '';
var maskData = data.val();
var name = maskData.name;
var adr = maskData.adr;
var ivn = maskData.ivn;
var 분출량 = maskData.분출량.yyyy.mm.dd
console.log(분출량)
content += '<tr>';
content += '<td>' + today + '</td>';
content += '<td>' + name + '</td>';
content += '<td>' + adr + '</td>';
content += '<td>' + ivn + '</td>';
// content += '<td>' + 분출량 + '</td>';
content += '<tr>';
$('.table').append(content);
}