如何在Angular中获取每个设备的唯一ID
嗨,我是Angular的新手...现在我试图将购物车数据插入数据库表...在我的购物车中,我想存储itemID,QTY,DeviceuniqueID
...为什么此DeviceuniqueId表示,在我的WebApp中没有用于用户的登录...我想在购物车页面中显示购物车详细信息。找到解决方案...因此,请支持我开发WebApp ..如果在LocalStorage中有其他新方法意味着帮助我做到这一点...谢谢
Hi i am new to angular ... now i am trying to insert cart data in database table ... in my cart i want to store itemid,qty,deviceuniqueid
... why this deviceuniqueid means , in my webapp there is no login for user ...i want to show cart details in cart page .. thats only i need deviceuniqueid.... so how to get deviceuniqueid in angular... i search more but i can't find solution ...so please support me to develop webapp .. if any other new way to storedata in localstorage means help me to do this...thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法从浏览器中获得设备唯一的ID;但是,您可以在启动时生成一个自己,然后将其保存到
localstorage
以供以后重复使用!There's no way you can get a device unique id from the browser; but you can generate one yourself upon startup and save it into
localStorage
for later re-use!