Bid::with(['user', 'user.auto'])->get();
function FindCard(callback) {
axios.get('/treking.php', {
params: {
key: 3636614,
iin: 910131451122
}
}).asCallback(callback)
}
FindCard((err, card) => {
//
});
function FindCard() {
return axios.get('/treking.php', {
params: {
key: 3636614,
iin: 910131451122
}
});
}
FindCard().then(card => {
}).catch(err => {
})
var data = [
{key:'raz', cells:[{val: '1'},{val:'razoviy'}]},
{key:'dva', cells:[{val: '2'},{val:'vtoroy'}],children:[
{key:'poddva', cells:[{val: '2'},{val:'podvtoroy'}],children:
[{key:'podpoddva', cells:[{val: '2'},{val:'podpodvtoroy'}]},{key:'raz', cells:[{val: '1'},{val:'raz'}]}]
},
{key:'poddvadva', cells:[{val: '2'},{val:'podvtoroyvtoroy'}]}
]},
{key:'tri', cells:[{val: '3'},{val:'trtiy'}]}
]
var newDataCells = [{val: '1.0'},{val:'raz raz, est svyaz'}]
var obj = data.find(val => val.key == 'dva')
obj.cells = newDataCells;
console.log(data);
npm install --save pug
app.set('views', __dirname + '/views/');
app.set('view engine', 'pug');
res.render('index', {data:rows});
ul
each row in data
li= row.title