猿问

我跟着视频做的啊 怎么出错了

https://img.mukewang.com/5b15fd8a00013ceb10240757.jpg

https://img3.mukewang.com/5b15fd8c0001022816080373.jpg

我不知道那个步骤出了错  也跟着视频重新对了一遍   还请哪位大神解救一下


慕标1750170
浏览 1807回答 7
7回答

慕莱坞8333017

6358326537936485240103378744590178373204447508243616093999103429377790328863709996208903789605209645927050109752160751310761903726233538655008633054391004431764095114997332976752070955009551983394395228733762903286643967540764986319955432080966210633873093510819862388451997332885984101288508751107442074328751429765408487311

慕的地8582982

https://www.imooc.com/wenda/detail/333195https://www.imooc.com/wenda/detail/338104https://www.imooc.com/wenda/detail/341333https://www.imooc.com/wenda/detail/349765https://www.imooc.com/wenda/detail/340295https://www.imooc.com/wenda/detail/344260https://www.imooc.com/wenda/detail/347652https://www.imooc.com/wenda/detail/333079https://www.imooc.com/wenda/detail/347332https://www.imooc.com/wenda/detail/347043https://www.imooc.com/wenda/detail/342533https://www.imooc.com/wenda/detail/353721https://www.imooc.com/wenda/detail/341718https://www.imooc.com/wenda/detail/332846https://www.imooc.com/wenda/detail/353006https://www.imooc.com/wenda/detail/347476https://www.imooc.com/wenda/detail/339066https://www.imooc.com/wenda/detail/340565https://www.imooc.com/wenda/detail/332710https://www.imooc.com/wenda/detail/333420https://www.imooc.com/wenda/detail/337590https://www.imooc.com/wenda/detail/354489https://www.imooc.com/wenda/detail/335161https://www.imooc.com/wenda/detail/341216https://www.imooc.com/wenda/detail/352220https://www.imooc.com/wenda/detail/351238https://www.imooc.com/wenda/detail/333248https://www.imooc.com/wenda/detail/354223https://www.imooc.com/wenda/detail/331944https://www.imooc.com/wenda/detail/348389https://www.imooc.com/wenda/detail/343243https://www.imooc.com/wenda/detail/347441https://www.imooc.com/wenda/detail/353402https://www.imooc.com/wenda/detail/338937https://www.imooc.com/wenda/detail/350520https://www.imooc.com/wenda/detail/335116https://www.imooc.com/wenda/detail/333767https://www.imooc.com/wenda/detail/353408https://www.imooc.com/wenda/detail/332076https://www.imooc.com/wenda/detail/345840https://www.imooc.com/wenda/detail/344567https://www.imooc.com/wenda/detail/347504https://www.imooc.com/wenda/detail/343928https://www.imooc.com/wenda/detail/332384https://www.imooc.com/wenda/detail/355889https://www.imooc.com/wenda/detail/333088https://www.imooc.com/wenda/detail/354626https://www.imooc.com/wenda/detail/332304https://www.imooc.com/wenda/detail/354447https://www.imooc.com/wenda/detail/353557https://www.imooc.com/wenda/detail/337243https://www.imooc.com/wenda/detail/349292https://www.imooc.com/wenda/detail/350672https://www.imooc.com/wenda/detail/336501https://www.imooc.com/wenda/detail/355437https://www.imooc.com/wenda/detail/352346https://www.imooc.com/wenda/detail/334516https://www.imooc.com/wenda/detail/339420https://www.imooc.com/wenda/detail/348573https://www.imooc.com/wenda/detail/352991https://www.imooc.com/wenda/detail/336576https://www.imooc.com/wenda/detail/343715https://www.imooc.com/wenda/detail/355267https://www.imooc.com/wenda/detail/340554https://www.imooc.com/wenda/detail/354096https://www.imooc.com/wenda/detail/333581https://www.imooc.com/wenda/detail/332009https://www.imooc.com/wenda/detail/349060https://www.imooc.com/wenda/detail/348076https://www.imooc.com/wenda/detail/347219https://www.imooc.com/wenda/detail/344536https://www.imooc.com/wenda/detail/347259https://www.imooc.com/wenda/detail/354199https://www.imooc.com/wenda/detail/342827https://www.imooc.com/wenda/detail/354416https://www.imooc.com/wenda/detail/354719https://www.imooc.com/wenda/detail/343617https://www.imooc.com/wenda/detail/352650https://www.imooc.com/wenda/detail/339632https://www.imooc.com/wenda/detail/351029

慕田峪6141110

https://www.imooc.com/wenda/detail/333195https://www.imooc.com/wenda/detail/338104https://www.imooc.com/wenda/detail/341333https://www.imooc.com/wenda/detail/349765https://www.imooc.com/wenda/detail/340295https://www.imooc.com/wenda/detail/344260https://www.imooc.com/wenda/detail/347652https://www.imooc.com/wenda/detail/333079https://www.imooc.com/wenda/detail/347332https://www.imooc.com/wenda/detail/347043https://www.imooc.com/wenda/detail/342533https://www.imooc.com/wenda/detail/353721https://www.imooc.com/wenda/detail/341718https://www.imooc.com/wenda/detail/332846https://www.imooc.com/wenda/detail/353006https://www.imooc.com/wenda/detail/347476https://www.imooc.com/wenda/detail/339066https://www.imooc.com/wenda/detail/340565https://www.imooc.com/wenda/detail/332710https://www.imooc.com/wenda/detail/333420https://www.imooc.com/wenda/detail/337590https://www.imooc.com/wenda/detail/354489https://www.imooc.com/wenda/detail/335161https://www.imooc.com/wenda/detail/341216https://www.imooc.com/wenda/detail/352220https://www.imooc.com/wenda/detail/351238https://www.imooc.com/wenda/detail/333248https://www.imooc.com/wenda/detail/354223https://www.imooc.com/wenda/detail/331944https://www.imooc.com/wenda/detail/348389https://www.imooc.com/wenda/detail/343243https://www.imooc.com/wenda/detail/347441https://www.imooc.com/wenda/detail/353402https://www.imooc.com/wenda/detail/338937https://www.imooc.com/wenda/detail/350520https://www.imooc.com/wenda/detail/335116https://www.imooc.com/wenda/detail/333767https://www.imooc.com/wenda/detail/353408https://www.imooc.com/wenda/detail/332076https://www.imooc.com/wenda/detail/345840https://www.imooc.com/wenda/detail/344567https://www.imooc.com/wenda/detail/347504https://www.imooc.com/wenda/detail/343928https://www.imooc.com/wenda/detail/332384https://www.imooc.com/wenda/detail/355889https://www.imooc.com/wenda/detail/333088https://www.imooc.com/wenda/detail/354626https://www.imooc.com/wenda/detail/332304https://www.imooc.com/wenda/detail/354447https://www.imooc.com/wenda/detail/353557https://www.imooc.com/wenda/detail/337243https://www.imooc.com/wenda/detail/349292https://www.imooc.com/wenda/detail/350672https://www.imooc.com/wenda/detail/336501https://www.imooc.com/wenda/detail/355437https://www.imooc.com/wenda/detail/352346https://www.imooc.com/wenda/detail/334516https://www.imooc.com/wenda/detail/339420https://www.imooc.com/wenda/detail/348573https://www.imooc.com/wenda/detail/352991https://www.imooc.com/wenda/detail/336576https://www.imooc.com/wenda/detail/343715https://www.imooc.com/wenda/detail/355267https://www.imooc.com/wenda/detail/340554https://www.imooc.com/wenda/detail/354096https://www.imooc.com/wenda/detail/333581https://www.imooc.com/wenda/detail/332009https://www.imooc.com/wenda/detail/349060https://www.imooc.com/wenda/detail/348076https://www.imooc.com/wenda/detail/347219https://www.imooc.com/wenda/detail/344536https://www.imooc.com/wenda/detail/347259https://www.imooc.com/wenda/detail/354199https://www.imooc.com/wenda/detail/342827https://www.imooc.com/wenda/detail/354416https://www.imooc.com/wenda/detail/354719https://www.imooc.com/wenda/detail/343617https://www.imooc.com/wenda/detail/352650https://www.imooc.com/wenda/detail/339632https://www.imooc.com/wenda/detail/351029

慕田峪6141110

https://www.imooc.com/wenda/detail/333195https://www.imooc.com/wenda/detail/338104https://www.imooc.com/wenda/detail/341333https://www.imooc.com/wenda/detail/349765https://www.imooc.com/wenda/detail/340295https://www.imooc.com/wenda/detail/344260https://www.imooc.com/wenda/detail/347652https://www.imooc.com/wenda/detail/333079https://www.imooc.com/wenda/detail/347332https://www.imooc.com/wenda/detail/347043https://www.imooc.com/wenda/detail/342533https://www.imooc.com/wenda/detail/353721https://www.imooc.com/wenda/detail/341718https://www.imooc.com/wenda/detail/332846https://www.imooc.com/wenda/detail/353006https://www.imooc.com/wenda/detail/347476https://www.imooc.com/wenda/detail/339066https://www.imooc.com/wenda/detail/340565https://www.imooc.com/wenda/detail/332710https://www.imooc.com/wenda/detail/333420https://www.imooc.com/wenda/detail/337590https://www.imooc.com/wenda/detail/354489https://www.imooc.com/wenda/detail/335161https://www.imooc.com/wenda/detail/341216https://www.imooc.com/wenda/detail/352220https://www.imooc.com/wenda/detail/351238https://www.imooc.com/wenda/detail/333248https://www.imooc.com/wenda/detail/354223https://www.imooc.com/wenda/detail/331944https://www.imooc.com/wenda/detail/348389https://www.imooc.com/wenda/detail/343243https://www.imooc.com/wenda/detail/347441https://www.imooc.com/wenda/detail/353402https://www.imooc.com/wenda/detail/338937https://www.imooc.com/wenda/detail/350520https://www.imooc.com/wenda/detail/335116https://www.imooc.com/wenda/detail/333767https://www.imooc.com/wenda/detail/353408https://www.imooc.com/wenda/detail/332076https://www.imooc.com/wenda/detail/345840https://www.imooc.com/wenda/detail/344567https://www.imooc.com/wenda/detail/347504https://www.imooc.com/wenda/detail/343928https://www.imooc.com/wenda/detail/332384https://www.imooc.com/wenda/detail/355889https://www.imooc.com/wenda/detail/333088https://www.imooc.com/wenda/detail/354626https://www.imooc.com/wenda/detail/332304https://www.imooc.com/wenda/detail/354447https://www.imooc.com/wenda/detail/353557https://www.imooc.com/wenda/detail/337243https://www.imooc.com/wenda/detail/349292https://www.imooc.com/wenda/detail/350672https://www.imooc.com/wenda/detail/336501https://www.imooc.com/wenda/detail/355437https://www.imooc.com/wenda/detail/352346https://www.imooc.com/wenda/detail/334516https://www.imooc.com/wenda/detail/339420https://www.imooc.com/wenda/detail/348573https://www.imooc.com/wenda/detail/352991https://www.imooc.com/wenda/detail/336576https://www.imooc.com/wenda/detail/343715https://www.imooc.com/wenda/detail/355267https://www.imooc.com/wenda/detail/340554https://www.imooc.com/wenda/detail/354096https://www.imooc.com/wenda/detail/333581https://www.imooc.com/wenda/detail/332009https://www.imooc.com/wenda/detail/349060https://www.imooc.com/wenda/detail/348076https://www.imooc.com/wenda/detail/347219https://www.imooc.com/wenda/detail/344536https://www.imooc.com/wenda/detail/347259https://www.imooc.com/wenda/detail/354199https://www.imooc.com/wenda/detail/342827https://www.imooc.com/wenda/detail/354416https://www.imooc.com/wenda/detail/354719https://www.imooc.com/wenda/detail/343617https://www.imooc.com/wenda/detail/352650https://www.imooc.com/wenda/detail/339632https://www.imooc.com/wenda/detail/351029

小草1434

第17行脚本看下,应该是没有定义对象变量,导致无法设置其对象的属性,null不可能有属性,或者是属性被定义成不可设置值为null

qq_清影无痕_0

你的id拼写有误,在第二张图片中显示,在你的行内代码中,id=“mian”,但是在第一张js代码中,你用的byId("main"),这样是获取不到元素的,所以出错

野生码农在线co腚

15行 var main = byId("#main")
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答