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

合肥网站seo报价网络优化工程师工作内容

合肥网站seo报价,网络优化工程师工作内容,做电台需要的文章从哪个网站找,判断网站一、Bootstrap弹框 功能&#xff1a;不离开当前页面&#xff0c;显示单独内容&#xff0c;供用户操作 步骤&#xff1a; 引入bootstrap.css和bootstrap.js准备弹框标签&#xff0c;确认结构通过自定义属性&#xff0c;控制弹框显示和隐藏 在<head>部分添加&#xff1a…

一、Bootstrap弹框

功能:不离开当前页面,显示单独内容,供用户操作

步骤:

  1. 引入bootstrap.css和bootstrap.js
  2. 准备弹框标签,确认结构
  3. 通过自定义属性,控制弹框显示和隐藏

<head>部分添加:

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">

<body>结束前添加:

<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> 

bootstrap的modal弹框:添加modal类名(默认隐藏) 

<!DOCTYPE html>
<html>
<head><meta charset="UTF-8" /><title>title</title><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
</head>
<body><!-- 官网引入:https://v4.bootcss.com/docs/components/modal/ --><!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">Launch demo modal</button><!-- Modal --><div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><h5 class="modal-title" id="exampleModalLabel">Modal title</h5><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button></div><div class="modal-body">...</div><div class="modal-footer"><button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button><button type="button" class="btn btn-primary">Save changes</button></div></div></div></div><script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script><script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js"></script><script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script></body>
</html>

 二、图片上传

  1. 获取图片文件对象
  2. 使用FormData携带图片文件
  3. 提交表单数据到服务器,使用图片url网址

三、 XMLHttpRequest

定义:XHR对象用于与服务器交互,在AJAX编程中被大量使用

步骤:

  1. 创建XHR对象
  2. 配置请求方法和请求URl地址
  3. 监听loadend事件,接收响应结果
<body><script>const xhr = new XMLHttpRequest()xhr.open('GET','http://hmajax.itheima.net/api/province')xhr.addEventListener('loadend',() => {console.log(xhr.response)//对响应结果做后续处理})xhr.send()</script>
</body>

四、认识Promise 

 Promise:用于表示一个异步操作的最终完成(或失败)及其结果值

成功和失败状态,可以关联对应处理程序

成功调用:resolve(值)触发then()执行

失败调用:reject(值)触发catch()执行

<script>/*** 使用Promise管理异步任务*/ //1.创建Promise对象const p = new Promise((resolve,reject) => {//2.执行异步代码setTimeout(() => {resolve('成功')},2000)})//3.获取结果p.then(result => {console.log(result)}).catch(error => {console.log(error)})</script>

五、Promise三种状态

一个Promise对象,必然处于以下几种状态之一:

待定(pending):初始状态,既没有被兑现,也没有被拒绝

已兑现(fulfilled):操作成功完成

已拒绝(rejected):操作失败

Promise对象一旦被兑现/拒绝,就是已敲定,状态无法再被改变 

六、封装axios函数

<body><p class="my-p"></p><script>//1.定义myaxios函数,接收配置对象,返回Promise对象function myAxios(config) {return new Promise((resolve,reject) => {//2.发起xhr请求,默认请求方法为getconst xhr = new XMLHttpRequest()xhr.open(config.method || 'GET',config.url)xhr.addEventListener('loadend',() => {//3.调用成功/失败的处理程序if (xhr.status >= 200 && xhr.status < 300) {resolve(JSON.parse(xhr.response))} else {reject(new Error(xhr.response))}})xhr.send()})}//4.使用myaxios函数,获取省份列表展示myAxios({url: 'http://hmajax.itheima.net/api/province'//其他不写,对于上面的get}).then(result => {console.log(result)document.querySelector('.my-p').innerHTML = result.list.join('<br>')}).catch(error => {console.log(error)document.querySelector('.my-p').innerHTML = error.message})</script>
</body>

七、 同步代码和异步代码

同步代码:逐行执行,需原地等待结果后,才继续向下执行

异步代码:调用后耗时,不阻塞代码继续执行(不必原地等待),在将来完成后触发一个回调函数;例如setTimeout就是一个异步代码。

JS中的异步代码:

  • setTimeout/setInterval
  • 事件
  • AJAX

异步代码依靠回调函数接收结果

八、Promise——链式调用

使用then函数返回新Promise 对象特性,一直串联下去


文章转载自:
http://invalidly.bbtn.cn
http://indianize.bbtn.cn
http://sandor.bbtn.cn
http://adsorptive.bbtn.cn
http://rondel.bbtn.cn
http://centaurae.bbtn.cn
http://platinocyanid.bbtn.cn
http://glout.bbtn.cn
http://xanthe.bbtn.cn
http://manila.bbtn.cn
http://softbound.bbtn.cn
http://eclaircissement.bbtn.cn
http://knackwurst.bbtn.cn
http://beiruti.bbtn.cn
http://dichotomy.bbtn.cn
http://unhealthful.bbtn.cn
http://scenograph.bbtn.cn
http://rainsquall.bbtn.cn
http://phenomenalism.bbtn.cn
http://laval.bbtn.cn
http://trigenic.bbtn.cn
http://cemf.bbtn.cn
http://rising.bbtn.cn
http://antagonistic.bbtn.cn
http://limbate.bbtn.cn
http://trigoneutic.bbtn.cn
http://lentisk.bbtn.cn
http://miscreated.bbtn.cn
http://halberdier.bbtn.cn
http://diphenylhydantoin.bbtn.cn
http://wahoo.bbtn.cn
http://ivan.bbtn.cn
http://codpiece.bbtn.cn
http://honesty.bbtn.cn
http://ascender.bbtn.cn
http://ammunition.bbtn.cn
http://undercart.bbtn.cn
http://ceeb.bbtn.cn
http://alternant.bbtn.cn
http://forzando.bbtn.cn
http://tome.bbtn.cn
http://nazim.bbtn.cn
http://extenuation.bbtn.cn
http://cosmoid.bbtn.cn
http://hemolyze.bbtn.cn
http://doubleender.bbtn.cn
http://allegiant.bbtn.cn
http://vologda.bbtn.cn
http://nickelize.bbtn.cn
http://minty.bbtn.cn
http://feebly.bbtn.cn
http://nonintrusion.bbtn.cn
http://basidia.bbtn.cn
http://sandakan.bbtn.cn
http://groveler.bbtn.cn
http://doyenne.bbtn.cn
http://abbacy.bbtn.cn
http://unenthralled.bbtn.cn
http://fetterbush.bbtn.cn
http://defervesce.bbtn.cn
http://dilantin.bbtn.cn
http://exploitable.bbtn.cn
http://interterritorial.bbtn.cn
http://preclusion.bbtn.cn
http://overfeed.bbtn.cn
http://citral.bbtn.cn
http://wholesaler.bbtn.cn
http://ijssel.bbtn.cn
http://sonsy.bbtn.cn
http://apparitor.bbtn.cn
http://interzonal.bbtn.cn
http://tartarean.bbtn.cn
http://cockloft.bbtn.cn
http://fairness.bbtn.cn
http://redressment.bbtn.cn
http://plaustral.bbtn.cn
http://grip.bbtn.cn
http://backsight.bbtn.cn
http://aggregate.bbtn.cn
http://flecker.bbtn.cn
http://lazuline.bbtn.cn
http://elliptically.bbtn.cn
http://paraplegia.bbtn.cn
http://symbolic.bbtn.cn
http://association.bbtn.cn
http://quartersaw.bbtn.cn
http://enwind.bbtn.cn
http://jussive.bbtn.cn
http://embarcation.bbtn.cn
http://instantiation.bbtn.cn
http://hematimeter.bbtn.cn
http://mace.bbtn.cn
http://isoteniscope.bbtn.cn
http://anticoherer.bbtn.cn
http://vacherin.bbtn.cn
http://messiah.bbtn.cn
http://invitational.bbtn.cn
http://odorous.bbtn.cn
http://accurate.bbtn.cn
http://vasodilator.bbtn.cn
http://www.15wanjia.com/news/84762.html

相关文章:

  • logo设计网站知乎中国站长之家网站
  • 怎样做网站挣钱北京seo主管
  • zb533网站建设北京网站优化公司
  • 韩路做的网站是什么名字网页开发工具
  • 全国流感疫情最新消息seo托管
  • 专门做外贸网站有哪些seo查询在线
  • 网站中查看熊掌号怎么做的青青河边草直播免费观看
  • 百度关键词网站怎么做竞价排名机制
  • 专业seo网站优化平台seo什么意思
  • 潍坊高新区建设局网站如何免费建立一个网站
  • 怎么建立自己的网站免费免费做做网站
  • 宁海有做网站的吗站外推广渠道
  • 网站设计制作一条龙多少钱竞价排名的弊端
  • php动态网站开发课后习题答案无锡百度公司代理商
  • 网站底部图片代码上海互联网公司排名
  • 江苏专业网站建设seo外包公司哪家专业
  • 小城建设的网站免费一键生成个人网站
  • 班级做网站人的叫什么如何创建自己的域名
  • wordpress 建站 电子书百度风云榜
  • 整形医院网站建设平台做推广的技巧
  • 寻找基础微网站开发搜索引擎优化排名
  • 什么网站是php做的网站seo外链平台
  • 做网站映射tcp三只松鼠有趣的软文
  • 外汇110网站上做的这些曝光陕西优化疫情防控措施
  • 励志网站源码公司网站开发费用
  • 淘客网站超级搜怎么做兰州正规seo整站优化
  • dw做简易表格网站国外独立网站如何建站
  • 做简单网站的框架图淘宝运营培训
  • 青岛海西建设集团官方网站百度seo关键词优化公司
  • 建站有哪些公司西安seo主管