删除ios safari浏览器的网站数据

时间:2022-09-15 10:36:26

I have created one web based game using JS. I have loaded resources to browser. After sometime i want to remove the loaded resource since i will be loading another set of resources. If i keep both set of images then browser will automatically get refresh by providing message "A problem occurred with this webpage so it was reloaded".

我使用JS创建了一个基于Web的游戏。我已经将资源加载到浏览器。一段时间后,我想删除已加载的资源,因为我将加载另一组资源。如果我保留两组图像,那么浏览器将通过提供消息“此网页出现问题以便重新加载”自动刷新。

Can anyone please tell me how to delete the resource which are saved in browser.

谁能告诉我如何删除保存在浏览器中的资源。

I tried with some alternative method. If i refresh the page then resource will automatically removed. I used location.reload(true) code.

我尝试了一些替代方法。如果我刷新页面,则资源将自动删除。我使用了location.reload(true)代码。

This works fine in desktop browser. But when i check in IPAD device safari browser page will be refreshed but resource size in browser are not deleted.

这在桌面浏览器中工作正常。但是当我在IPAD设备中检查时,浏览器页面将被刷新,但浏览器中的资源大小不会被删除。

Any idea on this alternative method?

对这种替代方法有什么想法吗?

Thanks in advance.

提前致谢。

1 个解决方案

#1


0  

I think it's better that you do the game with C # as it has a function to eliminate things that are not used to prevent your problem

我认为你用C#做游戏更好,因为它有一个功能来消除那些不用来防止你的问题

#1


0  

I think it's better that you do the game with C # as it has a function to eliminate things that are not used to prevent your problem

我认为你用C#做游戏更好,因为它有一个功能来消除那些不用来防止你的问题