老师你好,下面这段话我有点不明白,希望老师详细讲一下:
重写 Thread 类的 run 方法和实现 Runnable 接口的 run 方法还有一个很重要的不同:那就是 Thread 类的 run 方法是不能够共享的,也就是说 A 线程不能把 B 线程的 run 方法 当作自己的执行单元,而使用 Runnable 接口则很容易就能实现这一点,使用同一个Runnable 的实例构造不同的 Thread 实例。
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>原型</title> </head> <body> <script> /* //原型 function func() {} func.prototype.name = '张三'; func.prototype.age=18; func.prototype.sex='男'; var obj= new func(); console.log(obj); function People(){} //console.log(People.prototype.constructor); console.log(People.prototype); var beixi=new People(); console.log(beixi.__proto__); */ function People(){} var peo1=new People(); var peo2=new People(); People.prototype.frineds=['张三','李四','王五','找刘']; peo1.frineds.pop(); console.log(peo1.frineds); console.log(peo2.frineds); </script> </body> </html>
为什么我的俩个都删除了呢
这里源码中为什么调用的是自写的doget,dopost,
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <script src="jquery-1.8.3.js"></script> <style> *{padding: 0;margin: 0;} div{ width: 400px;border: 3px solid skyblue;margin: 100px auto;padding: 20px;} li{ width: 100px;display: inline; } ul{text-align: center;list-style: none;} button{width: 40%; background-color: aquamarine;height: 40px;line-height: 40px;text-align: center;margin: 5px auto;} </style> </head> <body> <div class="con"> <ul> <li class="hide">1</li> <li>2</li> <li>2</li> <li>2</li> <li>2</li> <li>2</li> <li>2</li> <li>2</li> <li class="hide">1</li> <li>2</li> <li class="hide">1</li> <li class="hide">1</li> <li>2</li> <li>2</li> <li>2</li> <li>2</li> <li>2</li> <li>2</li> <li>2</li> <li>2</li> <li>2</li> <li>2</li> <li>2</li> <li>2</li><li>2</li> <li>2</li> <li>2</li> <li>2</li> <li>2</li> <li>2</li> </ul> <button>显示2</button> </div> <script> $('button').toggle(function(){ $('.hide').hide(200); $('button').html('显示1和2'); },function(){ $('.hide').show(200); $('button').html('显示2'); }) </script> </body> </html>
老师为什么隐藏后再显示的跟隐藏前显示的布局不一样
你好老师,我下的是2020.2.1的版本,请问到这里要选择什么? 和视频的页面不太一样
老师 键盘事件 绑定root能正常触发 绑定self.canvas没有反应,是什么问题?
老师,为什么我这边溢出的时候返回的total不是负数?
老师,我操作一切正常就是Redis没有值是咋回事
老师,请问,讲义里面这前面加个标签名p或者h2是什么意思呢
为什么我的代码写好运行后只能画出一个圆?
老师,我有点不太明白给中文加双引号的作用是什么
老师Map不是 key,value一对这样的吗 那为什么这里的value放前面,key放后面,还是说顺序排放是随便放的
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <script src="jquery-1.8.3.js"> </script> <style> div{width: 200px;height: 50px;background-color: red;margin-top: 20px;} </style> </head> <body> <div class="div1"></div> <div class="div2"></div> <div class="div3"></div> <script> $('.div1').click(function(){ $('.div2').css('background-color','blue'); }) $('.div3').on('click',function(){ $('.div1').off('click'); console.log('1111') }) </script> </body> </html>
老师 我点div3的时候为啥div2不会变回红色,是不要要重新设置他的背景色
百度网盘中好像没有第八章的pdf。。。。。。。
还有就是老师我的抽象类方法中可以这样写吗,或者后面是不是可以说都不用传入参数了呢?
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637