Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一张用于用户徽章和成就的表格。徽章的默认值写为锁定在每个徽章的字段值中。然后,当用户解锁徽章时,字段值将更新为unlocked。我如何通过弹出消息提醒用户他们刚刚根据价值变化解锁了一项新成就?
这可能与 Javascript 和 onclick(alert('unlocked')) 或类似的东西有关。