10 2019 档案

摘要:1、父传子 传参页面 <template> <div id="app"> <p>父组件</p> <users :users="users"></users>//在父组件中显示子组件,将要传递的值绑定到子组件上 </div> </template> <script> import Users from 阅读全文
posted @ 2019-10-30 11:53 咱也不敢问 阅读(199) 评论(0) 推荐(0) 编辑
摘要:1、params传参页面 <template> <button @click="params()">params传参</button> </template> <script> export default { </template> <script> export default { export 阅读全文
posted @ 2019-10-30 11:03 咱也不敢问 阅读(329) 评论(0) 推荐(0) 编辑
摘要:首先,准备两个div盒子,给每个盒子设置固定的宽高,但是在设置宽度时给子盒子的宽度设置高于父盒子30px, <style> .box { height: 200px; width: 200px; overflow: hidden; } .boxSon { width: 230px; height:  阅读全文
posted @ 2019-10-28 15:19 咱也不敢问 阅读(157) 评论(0) 推荐(0) 编辑
摘要:<div class="refresh">刷新</div> <script> // 鼠标按下$('.refresh').mousedown(function () { $(this).css({ "color": "#2a72f5" })})// 鼠标抬起$('.refresh').mouseup( 阅读全文
posted @ 2019-10-23 15:15 咱也不敢问 阅读(383) 评论(0) 推荐(0) 编辑
摘要:暂停直播 开始直播 var pause = true; // 点击暂停直播按钮暂停 $('.stop').click(function () { if (pause) { pause = false $('video').trigger('pause'); $('.p1').css({... 阅读全文
posted @ 2019-10-23 11:38 咱也不敢问 阅读(1672) 评论(0) 推荐(0) 编辑
摘要:$("div").text(); 获取中间的文本,不包括html标签; $("div").html(); 获取中间的所有内容。 $('textarea').val();获取输入的内容 阅读全文
posted @ 2019-10-23 11:33 咱也不敢问 阅读(755) 评论(0) 推荐(0) 编辑
摘要:function Time() { var now = new Date(); var year = now.getFullYear(); //年 var month = now.getMonth() + 1; //月 var day = now.getDate(); //日 var hh = no 阅读全文
posted @ 2019-10-21 18:28 咱也不敢问 阅读(858) 评论(0) 推荐(0) 编辑
摘要:// 引入下载好的js文件 <script src="./js/jquery.nicescroll.min.js"></script> <script> //因为在同一个页面有tab切换项都需要使用滚动条,遇到一个问题,就是在点击下一个切换项的时候,上一个切换项的滚动条不会立即消失,所以给每一个切换 阅读全文
posted @ 2019-10-18 18:09 咱也不敢问 阅读(1554) 评论(0) 推荐(0) 编辑
摘要:// 鼠标进入离开音量 提问 统计样式 $('.vjs-volume-menu-button') .mouseover(function () { $('.tiwen').css({ transition: 'all 0.4s', right: '240px' }) $('.tongji').css 阅读全文
posted @ 2019-10-15 18:23 咱也不敢问 阅读(834) 评论(0) 推荐(0) 编辑
摘要:1、 使用video.js在body中 <video id="example_video_1" class="video-js vjs-default-skin" controls data-setup='{"example_option":true}'> <source src="./video/ 阅读全文
posted @ 2019-10-15 18:21 咱也不敢问 阅读(3707) 评论(0) 推荐(0) 编辑
摘要:<body> <div class="quick"> <p> 您的发言过快,请休息一下 </p> </div> <button id="send">发送</button> </body> <script> //首先引入jQuery <body> <div class="quick"> <p> 您的发 阅读全文
posted @ 2019-10-15 13:22 咱也不敢问 阅读(684) 评论(0) 推荐(0) 编辑
摘要:const flagR=true; $('.AdministrationT').mousedown(function (e) { alert(e.which) //判断鼠标点击的是什么键 1:左键 2:滚轮 3:右键 if (e.which == 3) { if (flagR) { flagR = false; $('.forbiddenJs').css(... 阅读全文
posted @ 2019-10-14 15:48 咱也不敢问 阅读(2710) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示