给定以下无序列表,如何从计算机列表中删除一台计算机?
let gun = new Gun();
let machineId = 'cool-machine';
let location = {
lat: position.coords.latitude,
lng: position.coords.longitude
};
let machines = gun.get('machines');
let machine = gun.get('machine/' + machineId);
machine.put({machineId, location});
发布于 2018-01-16 05:31:16
使用喷枪/取消设置:
machines.unset(machine);
https://stackoverflow.com/questions/48270902
复制相似问题