what are the two types of attribute names of an object? ask for guidance. Isn"t the previous string a type? there can be many attributes and names in an object.
what are the two types of attribute names of an object? ask for guidance. Isn"t the previous string a type? there can be many attributes and names in an object.
is the type of key. The key of an object cannot be defined in this way.
{
function(){}: xxx
}
is string
and Symbol
ah
let obj = {[Symbol('mykey')]:'123'}
Previous: How to upload a drag-and-drop folder at the front end
Next: How do I store data when the Mysql5.7 virtual column data type is DATE?
want to achieve such an effect async getInfo(id) { let params = { id } let res = await getdeviceInfo(params); return res.data } then you can pass console.log (getInfo) gets the return value directly instead of ca...
how to use chained calls to promise when encountering asynchronous code across files? I now write WeChat Mini Programs, calling wx.login,wx.getUserInfo in app.js and returning token and uid interfaces from my server. but in a subpage, you need to get...