提交 1c788226 编写于 作者: 杜庆泉's avatar 杜庆泉

Update uts-plugin.md

上级 b85ad5ff
......@@ -688,6 +688,16 @@ export function postUserInfo(user:UTSJSONObject){
}
```
需要注意的是,如果声明为any, vue环境中的Object 在UTS环境中也会被 UTSJSONObjct. 也就是说上面的代码同样可以写作
```ts
// UTSJSONObjct 数据类型示例-2
export function postUserInfo(user:any){
console.log(user);
}
```
```js
// uni-app 调用代码
postUserInfo({
......@@ -701,6 +711,7 @@ postUserInfo({
```
更多UTSJSONObject的用法,[详见](../uts/data-type.md#UTSJSONObject)
遗留问题:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册