async userStateuserinfo const data res = await this$httpput userStateid=$userinfoid&state=$userinfostate ;解读一下
- The function is an asynchronous function defined using the
asynckeyword. - The function takes an object
userinfoas input. - The function sends a PUT request to the server using the
$httpservice provided by the Vue.js framework. - The request URL is constructed using the
idandstateproperties of theuserinfoobject. - The response from the server is assigned to a destructured variable
resusing thedataproperty of the response object. - The function returns the
resvariable.
原文地址: https://www.cveoy.top/t/topic/bkb3 著作权归作者所有。请勿转载和采集!