如何从Web UI读取数据并使用NFC卡共享
我是NFC的新手,我们想要的是我们有一个网页,其中有所有用户详细信息,例如名称,电子邮件,Facebook URL,在URL中链接并存储在数据库中。现在我的问题是,NFC卡或任何应用都可以读取该数据并使用NFC卡共享。
请遵守我的问题,可能是错误的。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Web NFC 允许您在Android上读取和编写NFC标签。
要编写一个简单的文本记录,请将字符串传递到
ndefreader
write()
方法。scannibg附近的NFC标签也很容易:
我建议您阅读 https://web.dev/nfc 与 https://googlechrome.githrome.githrome.github.io/samples/web-nfc/那就是您要寻找的。
在您的具体情况下,我将以JSON格式存储数据,然后稍后阅读:
Web NFC allows you to read and write NFC tags on Chrome for Android.
To write a simple text record, pass a string to the
NDEFReader
write()
method.Scannibg nearby NFC tags is pretty easy as well:
I'd recommend you read https://web.dev/nfc and play with https://googlechrome.github.io/samples/web-nfc/ to see if that's what you're looking for.
In your specific case, I'd store data in a JSON format and read them later: