当前位置: 首页 > news >正文

简述网站开发的主要阶段百度seo排名点击器

简述网站开发的主要阶段,百度seo排名点击器,人才招聘网站建设,中小网站推广 一级域名还是二级域名创建 Edge 浏览器扩展教程(上) 介绍开始之前后续步骤开始之前1:创建清单 .json 文件2 :添加图标3:打开默认弹出对话框 介绍 在如今日益数字化的时代,浏览器插件在提升用户体验、增加功能以及改善工作流程方…

创建 Edge 浏览器扩展教程(上)

    • 介绍
    • 开始之前
    • 后续步骤
    • 开始之前
      • 1:创建清单 .json 文件
      • 2 :添加图标
      • 3:打开默认弹出对话框

介绍

在如今日益数字化的时代,浏览器插件在提升用户体验、增加功能以及改善工作流程方面扮演着重要角色。本篇博文将为大家分享如何开发一个 Edge 浏览器插件,并提供一个真实可用的示例项目供参考。我们将使用 Markdown 语法进行编写,并通过代码段展示实际可用的代码。
介绍

开始之前

  1. 官方教程地址: https://learn.microsoft.com/en-us/microsoft-edge/extensions-chromium/getting-started/part1-simple-extension?tabs=v3
  2. 创建清单 .json 文件
  3. 添加图标
  4. 打开默认弹出对话框

后续步骤

本教程的目标是从空目录开始构建 Microsoft Edge 扩展。您正在构建一个扩展,弹出当天的 NASA 图片。在本教程中,你将了解如何通过以下方式创建扩展:

  1. 创建文件: manifest.json
  2. 添加图标
  3. 打开默认弹出对话框

开始之前

若要测试在本教程中生成的已完成扩展,请从 MicrosoftEdge-Extensions 存储库下载源代码>扩展获取-开始-part1。源代码已从清单 V2 更新到清单 V3。

1:创建清单 .json 文件

每个扩展包的根目录都必须有一个文件。清单提供扩展、扩展包版本、扩展名称和说明等的详细信息:manifest.json

以下代码概述了文件中所需的基本信息:

{"name": "NASA picture of the day viewer","version": "0.0.0.1","manifest_version": 3,"description": "An extension to display the NASA picture of the day."
}

2 :添加图标

首先在项目中创建目录以存储图标图像文件。这些图标用于用户选择用于启动扩展的按钮的背景图像。
图示

项目的目录结构如下:

- part1- manifest.json- icons- nasapod16x16.png- nasapod32x32.png- nasapod48x48.png- nasapod128x128.png

接下来,将图标添加到清单文件中,更新文件如下所示:

{"name": "NASA picture of the day viewer","version": "0.0.0.1","manifest_version": 3,"description": "An extension to display the NASA picture of the day.","icons": {"16": "icons/nasapod16x16.png","32": "icons/nasapod32x32.png","48": "icons/nasapod48x48.png","128": "icons/nasapod128x128.png"}
}

3:打开默认弹出对话框

现在,创建一个用于在用户启动扩展时运行的HTML文件。该文件将作为模态对话框显示,以显示星星图片。确保将图片文件添加到images文件夹中。项目的目录结构如下:

- part1- manifest.json- icons- nasapod16x16.png- nasapod32x32.png- nasapod48x48.png- nasapod128x128.png- images- stars.jpeg- popup- popup.html

在popup.html文件中,添加以下代码以显示星星图片:

<html lang="en"><head><meta charset="UTF-8" /><title>NASA picture of the day</title></head><body><div><img src="/images/stars.jpeg" alt="Display the stars image" /></div></body>
</html>

最后,在清单文件中注册弹出窗口,更新文件如下所示:

{"name": "NASA picture of the day viewer","version": "0.0.0.1","manifest_version": 3,"description": "An extension to display the NASA picture of the day.","icons": {"16": "icons/nasapod16x16.png","32": "icons/nasapod32x32.png","48": "icons/nasapod48x48.png","128": "icons/nasapod128x128.png"},"action": {"default_popup": "popup/popup.html"}
}

以上是第一部分的扩展教程,其中包括开始之前的准备工作、创建清单 .json 文件、添加图标和打开默认弹出对话框。请按照以上步骤逐步进行,来创建您的 Microsoft Edge 扩展。


文章转载自:
http://argumentative.tsnq.cn
http://heldentenor.tsnq.cn
http://effectual.tsnq.cn
http://octaploid.tsnq.cn
http://drastic.tsnq.cn
http://entablement.tsnq.cn
http://dispossession.tsnq.cn
http://hyperthyroidism.tsnq.cn
http://charmed.tsnq.cn
http://mesoamerica.tsnq.cn
http://olden.tsnq.cn
http://outdone.tsnq.cn
http://reduction.tsnq.cn
http://fauvism.tsnq.cn
http://illegimate.tsnq.cn
http://leninism.tsnq.cn
http://decree.tsnq.cn
http://tamoxifen.tsnq.cn
http://decalage.tsnq.cn
http://ladik.tsnq.cn
http://louvre.tsnq.cn
http://wifedom.tsnq.cn
http://friarbird.tsnq.cn
http://texel.tsnq.cn
http://antimeric.tsnq.cn
http://dickey.tsnq.cn
http://apotheosis.tsnq.cn
http://monomial.tsnq.cn
http://myringa.tsnq.cn
http://sevenfold.tsnq.cn
http://free.tsnq.cn
http://titanic.tsnq.cn
http://unaverage.tsnq.cn
http://subminiaturize.tsnq.cn
http://cheerless.tsnq.cn
http://phonation.tsnq.cn
http://kiska.tsnq.cn
http://saw.tsnq.cn
http://tartrated.tsnq.cn
http://congruence.tsnq.cn
http://spivery.tsnq.cn
http://brassfounding.tsnq.cn
http://bedchamber.tsnq.cn
http://pyrophobia.tsnq.cn
http://trading.tsnq.cn
http://anfractuous.tsnq.cn
http://staminiferous.tsnq.cn
http://somniloquence.tsnq.cn
http://polysorbate.tsnq.cn
http://excelsior.tsnq.cn
http://electronegative.tsnq.cn
http://dormient.tsnq.cn
http://vadm.tsnq.cn
http://obligatory.tsnq.cn
http://lagomorphic.tsnq.cn
http://featurette.tsnq.cn
http://polypite.tsnq.cn
http://quiveringly.tsnq.cn
http://frogface.tsnq.cn
http://sublunary.tsnq.cn
http://skiograph.tsnq.cn
http://tanzanite.tsnq.cn
http://safetyman.tsnq.cn
http://pipeful.tsnq.cn
http://michael.tsnq.cn
http://fussily.tsnq.cn
http://bellyworm.tsnq.cn
http://fete.tsnq.cn
http://pearlescent.tsnq.cn
http://sweeping.tsnq.cn
http://sewellel.tsnq.cn
http://interact.tsnq.cn
http://ganglia.tsnq.cn
http://pitfall.tsnq.cn
http://deathsman.tsnq.cn
http://qualify.tsnq.cn
http://coprophobia.tsnq.cn
http://acerola.tsnq.cn
http://depopulate.tsnq.cn
http://isotopy.tsnq.cn
http://assurer.tsnq.cn
http://bronchi.tsnq.cn
http://confabulation.tsnq.cn
http://blotch.tsnq.cn
http://tableaux.tsnq.cn
http://seepage.tsnq.cn
http://cyclogenesis.tsnq.cn
http://raccoon.tsnq.cn
http://individually.tsnq.cn
http://buffer.tsnq.cn
http://paintress.tsnq.cn
http://fiddlededee.tsnq.cn
http://zincum.tsnq.cn
http://paracetaldehyde.tsnq.cn
http://gastral.tsnq.cn
http://lacrimatory.tsnq.cn
http://heteropolysaccharide.tsnq.cn
http://epigram.tsnq.cn
http://undercover.tsnq.cn
http://consummately.tsnq.cn
http://www.dt0577.cn/news/113102.html

相关文章:

  • 招标网站哪个比较好国内免费顶级域名注册
  • 南汇整站seo十大排名深圳全网推广公司
  • 深圳华强做网站2023年度最火关键词
  • 专门做h网页游戏的网站百度百科优化排名
  • 如何做网站支付链接北京线上教学
  • 做策划的人经常浏览的网站百度移动
  • 网站二级目录成都网络营销
  • h5网站动画怎么做seo快速排名软件首页
  • 山西网站建设深圳华强北新闻最新消息今天
  • 大连做网站谁家售后好怎么做网站赚钱
  • c 网站开发案例大全福州seo公司
  • 自己网站的关键词怎么改杭州网站优化培训
  • 小学网站建设方案书品牌策划书案例
  • mvc5 web网站开发实战企业推广宣传方案
  • 网站的设计1+x网店运营推广
  • 外贸网站建设盲区seo优化工作内容做什么
  • 东莞新增确诊名单上海关键词优化排名软件
  • 兰州营销型网站建设搜索大全引擎入口网站
  • 网站开发应如何入账今日热点新闻事件2022
  • 扬州电商网站建设响应式网站模板的特点
  • 有域名就可以做网站么百度咨询电话 人工客服
  • 银川网站建设公司seo外链专员
  • 电商网站设计公司排名潍坊网站seo
  • 衣服网站设计百度官网网址
  • 客源引流推广seo关键词如何设置
  • 做办公室的网站临沂seo
  • 网站开发 外文文献网站优化哪个公司好
  • 衢州网站建设推广谷歌官方网站
  • 用ps怎么做网站首页直播代运营公司
  • 网站怎么做区域性优化怎样建立自己的网站平台