function getStock() {
return {
code: 'IBM',
price:100
}
}
var {code, price} = getStock();
//var stock = getStock();
//var code = stock.code;
//var price = stock.price;
console.log(code);
console.log(price);
return {
code: 'IBM',
price:100
}
}
var {code, price} = getStock();
//var stock = getStock();
//var code = stock.code;
//var price = stock.price;
console.log(code);
console.log(price);
2016-12-13
最赞回答 / 慕粉13757554657
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jquery/index.d.ts在这个里面
2016-12-12