视频中第100行的代码
<div class="blog-details">
</div>
,这个盒子的目的是什么,感觉有点多余了。
为什么在JS中插入标签时写转义,属性值用双引号就会报错?
为什么我添加定位了还是不动啊(点赞和评论那)
老师,不安装这个环境(XAMPP)运行不了吗
老师,不安装这个环境运行不了吗
老师,源代码提取到网盘下载不了
请问fetch是什么,打开检查的时候找哪里我没看懂
16:48:22 [Apache] Error: Apache shutdown unexpectedly. 16:48:22 [Apache] This may be due to a blocked port, missing dependencies, 16:48:22 [Apache] improper privileges, a crash, or a shutdown by another method. 16:48:22 [Apache] Press the Logs button to view error logs and check 16:48:22 [Apache] the Windows Event Viewer for more clues 16:48:22 [Apache] If you need more help, copy and post this 16:48:22 [Apache] entire log window on the forums 重新下载还是打不开,请问具体怎么解决啊
老师,我的电脑页面上显示的数据怎么转换成跟视频里的一样
在课堂基础上拓展了一个功能 进度条可以通过点击事件 变换歌曲播放进度
也就是鼠标点在进度条哪里,进度条就会到哪里,然后歌曲的播放时间也会对应的到这里。
其他代码跟老师的一样 只是在监听事件后面拓展了一个鼠标在进度条按下的时候的一个监听函数
代码如下:
//实现可以点击变换歌曲进度的进度条 //设置一个鼠标按下去的监听 //jin-du-tiao-passed 这个类对应的是 进度条底层的那个 监听鼠标在底层的进读条按下的时候 $('#jin-du-tiao').mousedown( function (e) { // console.log('鼠标按下了'); //获得鼠标按下的坐标 // console.log(e.pageX - $('#jin-du-tiao').offset().left); var chang_du=e.pageX - $('#jin-du-tiao').offset().left; //把这个值变成百分比 // console.log(chang_du/910); //设置鼠标属性的长度等于我们点击的这个值 $('.jin-du-tiao-passed').width((chang_du/910)*100 + '%') //现在在来解决播放时间的问题 //播放时长的百分比要等于我这百分比 // chang_du/910 这个是0到100的百分比 //audio.currentTime 这个是当前的秒数 假如歌曲是275秒 // 总秒数*百分比 就是他的百分比 让这个当前播放事件等于这个百分比 也就是ok了 audio.currentTime=totalTime*(chang_du/910); // console.log(audio.currentTime); //这个是秒数 看看对不对 结果ok } )
感觉这个思路下 添加一个快进快退的按钮 来控制歌曲播放进度也可以实现了
老师您好
我这边课件下载不下来 还要让我下载百度网盘用户端 我不想下载太占内存了 老师能邮件给我吗
window.onscroll = function(){
checkReachBottom()
}
//触底判断
function checkReachBottom(){
//获取页面滚动高度
var scrollTop =$(window).scrollTop();
var winHeight = $(window).height();
//获取最后一个元素距离顶部的高度
var allChild = $(".ts-card");
var lastBoxTop = allChild.eq(allChild.lenght-1).offset().top+240;
if(lastBoxTop<scrollTop+winHeight){
console.log("触底了");
老师,整理格式的插件叫什么呢?我忘记了
老师我这个得到的数据是这样的是哪出了问题,跟你的不一样啊,通过data[0].username得不到数据
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637