Parse.Query("

编程入门 行业动态 更新时间:2024-10-26 18:18:12
本文介绍了Parse.Query("_User") vs Parse.Query("User") vs Parse.Query(Parse.User)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

好像

Parse.Query("_User")

是规范的,但 Parse.Query("User") 和 Parse.Query(Parse.User) 也能工作.这些之间的行为是否存在差异?除了一致性之外,还有什么理由坚持一个而不是另一个?

is canonical, but Parse.Query("User") and Parse.Query(Parse.User) work too. Are there differences in behaviour between these? Any reason besides consistency to stick to one over the other?

Parse.User 看起来最好,因为它不依赖于字符串文字,但这不是我在文档中看到的.

Parse.User seems nicest, since it doesn't rely on a string literal, but it's not what I've seen in the docs.

推荐答案

Using Parse.Query(Parse.User) 是首选方法,内部 User/Role/Installation 的实际类名类是_User/_Role/_Installation,所以你可以使用它们.

Using Parse.Query(Parse.User) is the preferred method, the actual class name for the internal User/Role/Installation classes are _User/_Role/_Installation, so you can use them.

使用 Parse.Query("User") 实际上不会查询内部 User 类,而是查找您自己的 User 类.您可以尝试使用User"作为类名创建一个新的 User 对象,您将在数据浏览器中看到两个 User 类,一个带有特殊图标,一个没有.

Using Parse.Query("User") will not actually query the internal User class, and will instead look for your own User class. You can try by creating a new User object using "User" as the class name, and you'll see two User classes in your Data Browser, one with the special icon and one without.

更多推荐

Parse.Query("

本文发布于:2023-11-07 06:50:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1565812.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Parse   Query   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!