如何在我的 Chrome 扩展中创建菜单页面
我不知道如何在 chrome 扩展中创建菜单页面/弹出窗口(不确定这是否真的是它的名字)。我对 chrome 扩展程序编码非常陌生,我想知道如何在我的 chrome 扩展程序中创建一个新页面,就像在网站中单击按钮一样,它会将您带到网站内的不同页面。这是 chrome 上 2048 菜单页面的屏幕截图 ->2048 菜单页面,我不是确定如何创建这样的页面。我正在创建一个按钮游戏,我希望在单击 chrome 扩展图标时首先弹出我的菜单页面,然后有一个选项列表,如硬核、初学者等,以及一个带我进入游戏的按钮页面本身,但仍然在同一个弹出窗口中,具有相同的尺寸,与 2048 完全相同。它与弹出窗口(manifest.json 文件)有关吗?我真的不确定......
这是我的manifest.json文件的屏幕截图,这里是popup.html 的屏幕截图。如果有人知道如何做到这一点,或者需要任何额外的信息,请告诉我
I don't know how to create a menu page / popup in a chrome extension (not sure if thats actually what its called). I am very new to coding chrome extensions, and I was wondering how to create a new page in my chrome extension, just like in a website in which you click a button and it brings you to a different page within the website. This is a screenshot of the 2048 menu page on chrome ->2048 Menu Page and im not sure how to create a page like that. I am creating a button-pressing game, and I want my menu page to pop up first when the chrome extension icon is clicked, and then there is a list of options like hardcore, begginer etc. and a button to bring me to the game page itself, but still in the same popup, with the same dimensions, exactly like 2048. Does it have something to do with the popups, the manifest.json file? Im really not sure...
Here is the Screenshot of my manifest.json file and here is the Screenshot of popup.html. If anyone knows how to do this, or needs any extra info, please let me know ????????
PS: Pls explain and show me step by step like im a kindergarden kid, cuz at this stage in my coding skills i probs am ngl.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论