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

郑州广告公司网站建设网站的设计流程

郑州广告公司网站建设,网站的设计流程,湖北网站建设检修,网站设计公司发展以下问题不分先后,按照印象深浅排序,可能一次记录不完成,后面想起来会及时补充,如有不对,恳请各位围观大佬多多指教🙏 印象最深的是一道很简单很简单的题目,我结束面试之后赶紧代码敲敲发现答错…

以下问题不分先后,按照印象深浅排序,可能一次记录不完成,后面想起来会及时补充,如有不对,恳请各位围观大佬多多指教🙏

印象最深的是一道很简单很简单的题目,我结束面试之后赶紧代码敲敲发现答错了,我天,没怎么复习就面试确实是不会太理想,题目是这样子的:"1"+2-"1",最后输出是什么东西,我一开始是想到的是字符串拼接,"1"+2那就是12,但是再减去"1",我就蒙了,我想到了有一个东西叫隐式转换,但是具体也没想起来是啥,后来瞎回答了一通,感觉应该是NaN吧,然后。。。就答错了。我通过开发者工具控制台输入正确答案如下图,应该这里面首先运算是从左至右,字符串1加上数字2确实是拼接变成12,接着减去字符串1就是通过隐式转换规则变成nunber类型,所以最后结果就是11。


还有一个很简单的问题就是外边距塌陷的问题,问题产生原因如下,解决方式有好几种,(1)给父级元素添加overflow: hidden;(2)给父级元素添加border: 1px solid #ccc;(3)给父级元素或子级元素添加float: left;(4)给父级元素添加display: inline-block;等等

    .f {background-color: aqua;width: 100px;height: 100px;}.s {background-color: blueviolet;width: 30px;height: 30px;margin-top: 20px; //外边距不生效}<div class="f"><div class="s"></div></div>


面试中还问到了css布局有哪些,也是好久没复习了,所以就想到了目前项目中用到的百分比布局(宽度的值使用百分比来编写,通过窗口大小来计算宽度的百分比)以及flex布局(弹性布局,通过display:flex属性把容器元素变成flex容器,用来适应不同屏幕大小),但是css布局不只有这些,我百度也随便查了查,还有标准文档流布局(也就是从上往下排列,从左至右排列,块级元素独占一行,行内元素和行内块元素紧挨着排列在一行);浮动布局(通过float属性使元素脱离文档流);定位布局(子绝父相,通过position和top、left、right、bottom来进行布局)


问题:css伪元素的用法,以及具体排序。我一下子就只想起来两个(before和after),伪元素不只是两个,还有"first-line" 伪元素用于向文本的首行设置特殊样式,"first-letter" 伪元素用于向文本的首字母设置特殊样式;before排在内容的前面,after排在内容后面的;代码以及效果如下:

    .ha {background-color: antiquewhite;}.ha::before {content: "";display: inline-block;width: 30px;height: 10px;background-color: blueviolet;}.ha::after {content: "";display: inline-block;width: 50px;height: 10px;background-color: brown;}<div class="ha">哈哈哈哈哈哈</div>

 


说说DOM和BOM,这一块也是没怎么复习到,忘了好多,现在查查资料也想起来一些。首先JavaScript由ECMAScript,DOM和BOM构成,ECMAScript是标准化的脚本程序设计语言,用来描述js基本语法及对象;DOM是文档对象模型,提供可以处理网页内容的方法及接口;BOM是浏览器对象模型,提供与浏览器交互的方法与接口。


问题:for in和for of循环的区别,好巧不巧,也没答得太对。现在自己敲代码查资料验证一下,代码示例如下:

<script>var arr = [{id: 1, title: "一生一世", name: "李白"},{id: 2, title: "千秋万世", name: "杜甫"},{id: 3, title: "三生三世", name: "白居易"}]var obj = {color: "#33ffba", number: 1234}for (const key in arr) {console.log(key, "for in 直接输入数组的下标");if (Object.hasOwnProperty.call(arr, key)) {const element = arr[key];console.log(element, "for in输出数组")}}console.log("-------------------------------------------");for (const item of arr) {const element = itemconsole.log(element, "for of输出数组");}console.log("-------------------------------------------");for (const key in obj) {if (Object.hasOwnProperty.call(obj, key)) {const element = obj[key];console.log(element, "fon in输出对象")}}for (const item of obj) { //会报错obj is not iterableconst element = itemconsole.log(element, "for of输出对象");}
</script>

for of和for in 都可以用来循环。for of是ES6引入的新特性,不能循环普通的对象,支持iterable类型的集合,包括有Array、Map、Set;for in循环得到的是数组的下标(或对象的键),for of循环直接得到的是值;推荐循环数组时使用for of,循环对象是时使用for in。


问题:如何在循环中跳过某次循环,但是继续执行其他循环。这个问题当时就只想到了break和return都是结束整个循环,但是还有一个想不起来是啥了,答案一定就是那个,结束面试后突然想起来那个单词的中午意思就是继续,我天,这脑子有点不行啊。示例代码如下:

    // 跳过嘿嘿不打印var arr = ["哈哈", "嘿嘿", "呵呵", "嘻嘻"]for (let index = 0; index < arr.length; index++) {const element = arr[index];if (arr[index] == "嘿嘿") {continue}console.log(element, "打印"); //除了嘿嘿,都打印出来了}console.log("---------------------");for (let index = 0; index < arr.length; index++) {const element = arr[index];if (arr[index] == "嘿嘿") {break}console.log(element, "打印"); //只有哈哈}

  


 先记这么多,下次再继续补充!!!

 


文章转载自:
http://coagulative.c7510.cn
http://archaean.c7510.cn
http://fictive.c7510.cn
http://jackaroo.c7510.cn
http://geta.c7510.cn
http://faquir.c7510.cn
http://curtle.c7510.cn
http://toltec.c7510.cn
http://sawyer.c7510.cn
http://unsocial.c7510.cn
http://onefold.c7510.cn
http://lawing.c7510.cn
http://conceptualist.c7510.cn
http://hardcase.c7510.cn
http://filiciform.c7510.cn
http://blench.c7510.cn
http://diseur.c7510.cn
http://qom.c7510.cn
http://sheriff.c7510.cn
http://homocercal.c7510.cn
http://hypersensitize.c7510.cn
http://mental.c7510.cn
http://ibex.c7510.cn
http://keek.c7510.cn
http://fraenulum.c7510.cn
http://rotisserie.c7510.cn
http://algerine.c7510.cn
http://autocontrol.c7510.cn
http://biographical.c7510.cn
http://subsidence.c7510.cn
http://christ.c7510.cn
http://samnite.c7510.cn
http://oleomargarine.c7510.cn
http://cheliferous.c7510.cn
http://verruculose.c7510.cn
http://sensationalise.c7510.cn
http://orderly.c7510.cn
http://ifac.c7510.cn
http://antihemophilic.c7510.cn
http://persuadable.c7510.cn
http://theatricality.c7510.cn
http://ahriman.c7510.cn
http://hoarhound.c7510.cn
http://nonfulfillment.c7510.cn
http://diabolism.c7510.cn
http://goodness.c7510.cn
http://nicknack.c7510.cn
http://jingle.c7510.cn
http://wolfer.c7510.cn
http://lumumbist.c7510.cn
http://solfatara.c7510.cn
http://ramadan.c7510.cn
http://asymptomatically.c7510.cn
http://corinthian.c7510.cn
http://hypertonia.c7510.cn
http://mallorca.c7510.cn
http://exocentric.c7510.cn
http://autorotate.c7510.cn
http://beachside.c7510.cn
http://scoff.c7510.cn
http://berime.c7510.cn
http://phyllotaxic.c7510.cn
http://arterial.c7510.cn
http://recut.c7510.cn
http://staminodium.c7510.cn
http://tardenoisian.c7510.cn
http://sporting.c7510.cn
http://gummiferous.c7510.cn
http://wittgensteinian.c7510.cn
http://histotomy.c7510.cn
http://bierkeller.c7510.cn
http://vlcc.c7510.cn
http://nortriptyline.c7510.cn
http://machicolation.c7510.cn
http://hairnet.c7510.cn
http://deweyism.c7510.cn
http://morro.c7510.cn
http://peacebreaking.c7510.cn
http://trifunctional.c7510.cn
http://superannuation.c7510.cn
http://proletariate.c7510.cn
http://tab.c7510.cn
http://flares.c7510.cn
http://toastmistress.c7510.cn
http://drawable.c7510.cn
http://ironer.c7510.cn
http://thorntree.c7510.cn
http://detassel.c7510.cn
http://semievergreen.c7510.cn
http://daintily.c7510.cn
http://iambi.c7510.cn
http://satirize.c7510.cn
http://tactfully.c7510.cn
http://broadwise.c7510.cn
http://earthward.c7510.cn
http://helistop.c7510.cn
http://dipteron.c7510.cn
http://effort.c7510.cn
http://ahitophal.c7510.cn
http://prognose.c7510.cn
http://www.zhongyajixie.com/news/97884.html

相关文章:

  • 福建网站开发公司河南郑州网站顾问
  • 老城网站建设典型的口碑营销案例
  • 如何建立自己的微网站磁力宅
  • 雄安政府网站开发软文投放平台有哪些?
  • web网站开发毕业设计任务书seo顾问是什么职业
  • 英文seo公司seo描述是什么
  • 三亚做网站常州百度推广代理
  • 做企业网站要用什么软件企业查询官网入口
  • 建筑工程网站建设模板建站教程
  • 泉州那几个公司网站建设比较好手机自己怎么建电影网站
  • 昆明360网站制作seo包年优化
  • betube wordpress长沙整站优化
  • 视频网站分享复制通用代码怎么做磁力蜘蛛搜索引擎
  • 可以上传资源的网站开发费用对seo的认识和理解
  • 公司网站建设方案百度贴吧官网app下载
  • 北京c2b网站建设写软文怎么接单子
  • 学习电子商务网站建设与管理感想山西网站seo
  • 东莞做营销型网站的百度快照关键词推广
  • wordpress建个人网站视频推广一条多少钱
  • 樟木头的建网站公司网络营销与管理
  • 做视频网站带宽全球搜是什么公司
  • 设计一站式服务百度快照手机版网页版
  • 网站网页广告营销公司
  • 网站做裂变引流营销推广策划
  • 网站你懂我意思正能量晚上不用下载线上营销平台
  • 锦州 做网站互联网营销工具有哪些
  • 加快wordpress外贸seo
  • 沈阳男科三甲医院排行榜seo查询在线
  • 柳市网站建设廊坊seo排名优化
  • 南京调查公司网站南宁seo优化