Week 7 Post-class: Test your Knowledge
本页目录· 3 条
这一页有部分内容暂时无法显示,其余内容完整。
Question 1
When using Firebase to save the data, the data will be stored as JSON formatted data in the backend of Firebase.
使用 Firebase 保存数据时,后端会以 JSON 格式存储数据。
- True
- False
Question 2
What is the more appropriate way to display information relating to Aged care facilities for visitors who are visiting the website:
- Allow the user to see a table with facility info and search (CRUD-like) with nicer layout & pagination.
- Show pictures plus all attributes for each facility; if data is missing, display “Not Available.”
- Contain both A and B, and let the user switch via a tab.
- Contain both A and B, let the user switch via a tab, and only show available information (e.g., if only location exists for facility A, show location and hide other fields).
对网站访客,展示养老机构信息的更合适方式是:
此处有一段内容暂不支持显示。
- 1 错误:只用表格可查找,但可视化不足,也未处理缺失信息的可用性问题。
- 2 错误:强制展示所有字段会充斥大量 “Not Available”,增加认知负担,体验差。
- 3 不完整:有双视图/页签是进步,但仍可能把缺失字段硬塞给用户。
- 4 正确:兼顾列表/表格浏览与图片+详情两种需求,提供页签切换与渐进披露,并隐藏缺失字段以减少噪音,最符合面向访客的可用性与可读性原则。
Question 3
What is the best information to store on local storage? (Tick all that apply)
哪些信息最适合存储在本地存储中?(多选)
- The side tab's open or close state(侧边标签的打开/关闭状态)
- The dark/light mode of the website(网站的暗/亮模式)
- Shopping cart items(购物车商品)
- User’s search queries(用户的搜索查询)
答案:1、2、4
对于 C,理想情况下的答案应该同时在本地存储和服务器上(在用户登录时提供),直接存储在浏览器中具有性能优势,但是,如果内容仅存储在本地存储中,则当用户切换设备时,他们将无法访问内容。
在这种情况下,最好将数据存储在服务器上,以避免用户丢失任何购物车信息