老师,这里把移除代码写在前面,为什么函数还会执行一遍?我理解代码是自上而下执行,不会打印出才对,当div2移除成功,为什么点击div2部分,div1函数还会执行呢?我的理解是移除后点击div2部分div1不会执行。
<style> #div1{ background:red; width:100px; height:100px; } #div2{ background:green; width:50px; height:50px; } </style> <body> <div id="div1" onclick="te()">eee <div id="div2" onclick="te2();te3()">wen </div> </div> <span>wen</span> <script> var div1=document.querySelector('#div1') var div2=document.querySelector('#div2') function te(){ console.log("文本") } function te2(){ div2.setAttribute("onclick","null"); console.log("文本2"); } function te3(){ div2.setAttribute("onclick","null"); console.log("文本3"); } </script> </body>
老师,这里是因为这个函数为监听事件,决定了这个是事件捕获吗?除了这个自下而上的效果上区分,还可以怎么区分哪些算是事件捕获,哪些算是冒泡事件。
我第十八行这么写居然对了,但是我写 Outer2.Inner2 inn2=new Outer2().new Inner2();反而会错为什么?
对于万能参数 小括号填的怎么确定,从哪看?
参数后不用填的是显示了xxx=xxx 这样的吗
老师您好,每次一到这就卡。。。。。。 怎么解决
这种注释是什么类型的注释,怎么操作出来的,快捷键是什么
请问创建类和创建对象是一回事吗?
如果不是,那么在它们在代码中如何区别?
问题解决了..........................................
启动common_item错误代码如下,
TxManager启动正常,
防火墙已关,
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.bjsxt.item.CommonItemApplication]; nested exception is java.io.FileNotFoundException: class path resource [com/codingapi/txlcn/txmsg/MessageConfiguration.class] cannot be opened because it does not exist at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:596) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:302) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:242) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:199) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:167) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:315) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:232) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:705) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:531) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:742) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:389) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:311) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1213) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1202) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at com.bjsxt.item.CommonItemApplication.main(CommonItemApplication.java:18) ~[classes/:na] Caused by: java.io.FileNotFoundException: class path resource [com/codingapi/txlcn/txmsg/MessageConfiguration.class] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:180) ~[spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:51) ~[spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:103) ~[spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.createMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:86) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.getMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:73) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:81) ~[spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.asSourceClass(ConfigurationClassParser.java:682) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.asSourceClasses(ConfigurationClassParser.java:661) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:567) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] ... 17 common frames omitted
老师为什么下面这个类不加static上面的创建对面就会报错,这是为什么
flask_shop.zip
老师,您好!
我的数据在上传数据库时总是失败,跳转到异常错误提示处,也尝试过把password=pwd修改为pwd=pwd,也是不成功。麻烦老师帮忙看一下。
请问老师,这个语句的问题是什么,如何更改:
找各部门薪资最低的雇员,并显示雇员的名字
SELECT em.last_neme from employees em,(select min(e.salary) sal,e.department_id from employees e GROUP BY e.department_id) emp where em.salary in emp.sal and em.department_id=emp.department_id;
老师,你好!
验证usr时如果少写了对usr的的判断,直接对usr.check_passward(pwd)判断,就会提示AttributeError: 'NoneType' object has no attribute 'check_passward',这是为什么呢?
直接按照老师讲解的写是没问题的。
Student { (String[] args) { Student student = Student()student.=System..println(student.)} }
我没定义构造方法为什么还能运行
空间索引有什么用
GEOMETRY、POINT、
LINESTRING、POLYGON
这些数据类型之前都没介绍过,具体指什么数据类型呢
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637