做vue项目时使用vue-aplayer报错

配置完vue-aplayer,运行npm run start,一直报错依赖找不到

  • hls.js in ./node_modules/vue-aplayer/dist/vue-aplayer.min.js 图片说明图片说明

配置是按照https://blog.csdn.net/yusina_/article/details/83690647这个帖子配置的

新手自己写的第一个项目,卡一下午了,求教(真诚脸)

2个回答

他不是提示的很清楚吗?
缺少 hls.js 依赖;
要安装它,你可以运行: npm install --save hls.js

qq_41592321
qq_41592321 大哥,你解决了吗? 我也遇到这个问题了
2 个月之前 回复
qq_39045116
qq_39045116 试过了无效
7 个月之前 回复

我建议你重新安装 vue-aplay。因为很明显,是缺少vue-aplay的相关依赖hls.js。
如果只安装hls.js,可能还有其它的依赖缺失

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
vue-video-player 报错 ,请问怎么解决

vendor.fec61cdf0ab67b1c1d30.1557884654290.js:50 VIDEOJS: WARN: player.hls is deprecated. Use player.tech_.hls instead ``` import 'videojs-contrib-hls' import { videoPlayer } from 'vue-video-player'; <div class="video-container"> <div class="container"> <div class="player"> <video-player class="video-player vjs-custom-skin" ref="videoPlayer" :playsinline="true" :options="playerOptions" @play="onPlayerPlay($event)" @pause="onPlayerPause($event)" @touchEnd="handleVideo" > </video-player> </div> </div> </div> 代码部分 ```

vue-aplayer跳转路由时歌曲会停止,该怎么让他不停止

vue-aplayer跳转路由时歌曲会停止,该怎么让他不停止

在Vue项目中使用vue-aplayer插件时,做分页的效果,点击下一页音频数据不会更新,但是他会默认从头开始

这是组件 ``` <div class="demoThree" style="width: 100%"> <aplayer autoplay :music="{ title: ' ', artist: ' ', src: voice, pic: ' ', }" /> </div> ``` 在下面得到数据的函数赋值的时候 ``` if (data.data.data.records[0].audioPath!=null&&data.data.data.records[0].audioPath!=''){ this.voice=data.data.data.records[0].audioPath; } ``` 后台返回数据中没有这条数据就不会赋值,但是音频也从0开始

vue执行报错Uncaught SyntaxError: Unexpected token < ?

![图片说明](https://img-ask.csdn.net/upload/201904/23/1556010722_288694.png) 为什么会报这样的错?

vue的 transition-group 轮播图在图片播放时页面会自动跳转到顶部

我用vue的 transition-group 写了一个轮播图的组件,放入页面后正常,但是只要页面向下滚动一点, 在轮播图跳转的时候页面也就自动回到顶部了,请问一下这个问题出在哪里,然后需要怎么解决呢?求大神帮帮忙 我的组件代码如下: ``` <template> <div id="transition-a"> <div class="box"> <!-- <ul> --> <transition-group tag="ul" name="mj"> <li v-for="(img,$index) in imgList" :key="$index" v-show="index == $index"> <h2>{{$index+1}}</h2> <img :src="img.url" alt=""> </li> </transition-group> <!-- </ul> --> </div> </div> </template> <script> import imgs from "../../static/json.json" export default{ name:"transition-a", data(){ return{ imgList:imgs.data, index:0, } }, methods:{ setTime(){ if(this.index == this.imgList.length - 1){ this.index = 0 }else{ this.index ++ } } }, created(){ setInterval(this.setTime,1000) } } </script> <style scoped> .box{ height: 536px; text-align: center; padding: 60px 0 5000px 0; overflow: hidden; } ul{ list-style: none; padding:0 } </style> ```

vue的vuescroll插件苹果手机滑动不了,安卓手机没有问题

大佬们救助啊!!! ```<template> <div style="margin-top:-80px;"> <div class="page__hd"> <div class="weui-form-preview__ft"> <label class="weui-form-preview__btn weui-form-preview__btn_default"> <span @click="toIndex" style="color:rgb(0, 0, 0);">&lt;返回</span> </label> <label type="submit" class="weui-form-preview__btn weui-form-preview__btn_primary" href="javascript:" style="color:rgb(0, 0, 0);" >{{this.zqName}}合同</label> <label type="submit" class="weui-form-preview__btn weui-form-preview__btn_primary" style="color:rgb(0, 0, 0);" @click="select" > 筛选 <img src="../assets/000.png" height="20px" width="20px" /> </label> </div> </div> <div class="pr-wrap_tra" style=" overflow-y: scroll;touch-action: pan-y;-webkit-overflow-scrolling: touch;"> <div class="wrap-part_tra first_tra" > <vuescroll ref="vs" :ops="ops" @refresh-start="handleRS" @load-before-deactivate="handleLBD" @refresh-before-deactivate="handleRBD" @load-start="handleLoadStart" > <div v-for="item in ContractList" :key="item.dictid"> <div class="contractList_css_tra"> <div class="list_css_tra" @click="jumppage(item.dictid)"> <span style="float:left;">{{item.farmername}}</span> <span style="float:right;" v-if=" item.isrecord=== 0">糖厂未上报</span> <span style="float:right;" v-if=" item.isrecord=== 1">乡政府退回</span> <span style="float:right;" v-if=" item.isrecord=== 2">县政府退回</span> <span style="float:right;" v-if=" item.isrecord=== 5">糖厂已上报</span> <span style="float:right;" v-if=" item.isrecord=== 6">乡政府已上报</span> <span style="float:right" v-if=" item.isrecord=== 7">县政府已备案</span> <br /> <span style="color:#4169E1;float:left;margin-top: -5px;">({{item.ocnum}})</span> <!-- <p style="float:left; font-size:15px; color:#C0C0C0; margin-top: 5px" >&nbsp;&nbsp;{{item.signdate}}</p> --> <br /> <hr style="width: 100%;" /> <div class="tr_css_tra"> <table class="table_css_tra"> <tr class="title_tra"> <td>种植面积</td> <td>种植产量</td> <td>风险值</td> </tr> <tr class="content_tra"> <td>{{item.area?item.area.toFixed(2):0}} <span style="font-weight:bold;font-size: 13px;">亩</span> </td> <td>{{item.yeild?item.yeild.toFixed(2):0}} <span style="font-weight:bold;font-size: 13px;">吨</span></td> <td v-if=" item.isrecord == 0"> <span style="font-weight:bold;font-size: 13px;">-</span></td> <td v-if=" item.isrecord > 0 && item.matchstate ==0"> <span style="font-weight:bold;font-size: 13px;">计算中</span></td> <td v-if=" item.isrecord > 0 && item.matchstate ==1"> {{item.riskevaluation}} <span style="font-weight:bold;font-size: 13px;">%</span></td> </tr> </table> </div> <hr style="width: 100%;" /> <span style="float:left; margin-top: 10px; ">{{item.departname?item.departname:''}}</span> <span style="float:right; margin-top: 10px;">详情></span> </div> </div> </div> <div id="nodata" style="display:none">{{this.context}}</div> </vuescroll> </div> </div> </div> </template> <script> import vuescroll from "vuescroll"; import farmers from "@/api/farmers"; import indexApi from "@/api/index"; import Vue from "vue"; import axios from "axios"; export default { name: "myvuescroll", props: { // 语言 lang: { default: "zh" // en }, // 距离底部触发自动加载的距离 autoLoadDistance: { default: 10 }, // 是否开启下拉刷新 isRefresh: { default: true }, // 是否开启上拉加载 isPushLoad: { default: true }, // 数据是否全部加载完成 true为全部加载完成 noData: { default: false }, // 下拉刷新开始 refreshStart: { default: () => {} }, // 下拉刷新完成之后 refreshDeactivate: { default: () => {} }, // 上拉开始 loadStart: { default: () => {} }, // 上拉完成之后 loadDeactivate: { default: () => {} } }, components: { vuescroll }, data() { const config = {}; const ops = { vuescroll: { mode: "slide", pullRefresh: { enable: this.isRefresh }, pushLoad: { enable: this.isPushLoad, auto: true, //是否自动触发加载 autoLoadDistance: this.autoLoadDistance } } }; if (this.lang == "zh") { ops.vuescroll.pullRefresh.tips = { deactive: "下拉刷新", active: "释放刷新", start: "刷新中...", beforeDeactive: "刷新成功!" }; ops.vuescroll.pushLoad.tips = { deactive: "上拉加载", active: "释放加载", start: "加载中...", beforeDeactive: "加载成功!" }; } return { ops, config, pageNo: 1, isfirstload: false, end: 0, is: true, ContractList: [], zqName: "", minrisk: 0, maxrisk: 0, farmersName: "", contractCode: "", record: "", data: {}, zqCode: "", departCode: "", xzCode:"", user:{}, sx:true, xl:true, presser:'', context:'', //, maxarea:0, // minarea:0, // isrecord:0, // ocnum:0, // farmername:'' }; }, // created: function() { // this.myInstalHomeFun(); // }, created:function(){ this.user = this.$route.params.user; this.zqCode = this.$route.params.zqCode; this.departCode = this.$route.params.departCode; this.xzCode=this.$route.params.xzCode; this.zqName = this.$route.params.zqName; this.presser = this.$route.params.presser; }, mounted: function() { this.minrisk = this.$route.params.minrisk; this.maxrisk = this.$route.params.maxrisk; this.farmersName = this.$route.params.farmersName; this.contractCode = this.$route.params.contractCode; this.record = this.$route.params.record; this.FarmersContractList(); //需要触发的函数 // alert(this.minrisk) // alert(this.maxrisk) // alert(this.farmersName) // alert(this.contractCode) // alert(this.record) }, methods: { // FarmersContractList() { // let _this = this; // axios({ // url: // "/api/cloudec/fo/order/OrderContractController/GetOrderContractPage", // method: "post", // data: { // pageNo: 1, // pageSize: 10 // this.data=this.$route.query; // // this.maxarea=this.$route.query.maxarea; // // this.minarea=this.$route.query.minarea; // // this.isrecord=this.$route.query.isrecord; // // this.ocnum=this.$route.query.ocnum; // // this.farmername=this.$route.query.farmername; // }, // 刷新开始 // vsInstance vm===this // refreshDom === 刷新dom handleRS(vsInstance, refreshDom, done) { if (this.refreshStart) { this.refreshStart(done); } else { //this.setDone1(done); done(); } }, // 刷新完之后 handleRBD(vm, loadDom, done) { if (this.refreshDeactivate) { this.refreshDeactivate(done); } else { setTimeout(() => { this.setDone1(done); }, 600); } }, // 上拉开始 handleLoadStart(vm, dom, done) { if (this.loadStart) { this.loadStart(done); } else { if (this.isfirstload) { //this.setDone(done); done(); } else { done(); this.isfirstload = true; } } }, // 上拉完成后 handleLBD(vm, loadDom, done) { if (!this.$parent.noData) { if (this.loadDeactivate) { this.loadDeactivate(done); } else { setTimeout(() => { this.setDone(done); //done(); }, 600); } } else { setTimeout(() => { this.setDone(done); //done(); }, 600); } }, // 手动触发 外部通过ref触发 // type load 为加载 refresh 为刷新 trigger(type = "load") { this.$refs["vs"].triggerRefreshOrLoad(type); }, setDone(done) { if(this.sx){ this.pageNo++; this.FarmersContractList(); } done(); }, setDone1(done) { if(this.xl){ this.xl=false; this.ContractList = []; this.is=true; this.pageNo = 1; this.FarmersContractList(); } done(); }, FarmersContractList(done) { let _this = this; if (_this.is) { indexApi.FarmersContractList(this.pageNo,this.maxrisk,this.minrisk,this.record,this.contractCode,this.farmersName,this.departCode, this.zqCode,this.presser,this.xzCode,this.zj) .then(function(response) { // response.data中获取ResponseData实体 // alert(response); if(response.data.pageSize==0){ _this.context="暂无数据"; } for (var i = 0; i < response.data.page.dataList.length; i++) { _this.sx=false; _this.xl=false; _this.ContractList.push(response.data.page.dataList[i]); } _this.sx=true; _this.xl=true; if (response.data.page.totalPage == _this.pageNo) { _this.is = false; _this.context="暂无更多数据"; } //_this.ContractList = response.data.page.dataList; }) .catch(function(error) { // 发生错误 }); } else { //document.getElementById("nodata").style.display = "block"; } }, select() { this.$router.replace({ name: "select", params: { user: this.user, departCode:this.departCode, zqCode:this.zqCode, xzCode:this.xzCode, zqName:this.zqName, presser:this.presser } }); }, jumppage(val) { this.$router.replace({name: "contractInfo", params: { user: this.user,dictid: val, departCode:this.departCode, zqCode:this.zqCode, xzCode:this.xzCode, zqName:this.zqName, presser:this.presser}}); }, toIndex(){ this.$router.replace({name: "index"+this.user.wxUserInfo.userType, params: { user: this.user}}); } } }; </script> <style> .pr-wrap_tra { display: flex; height: calc(93vh); justify-content: center; width: 100%; } .pr-wrap_tra .wrap-part_tra { height: 100%; width: 100%; } .pr-wrap_tra .wrap-part_tra .first_tra { width: 100%; width: 100%; } .contractList_css_tra { position: relative; margin: 0 auto; width: 90%; height: 170px; background-color: #ffffff; border-radius: 5px; padding: 10px 10px 10px 10px; box-shadow: 5px 5px 10px 2px#DCDCDC; margin-bottom: 20px; } .tr_css_tra { margin: 10px 10px 10px 10px; /* border: 1px solid red; */ } /* .table_tra { width: 100%; text-align: center; margin-top: 50px; position: relative; margin: 0 auto; } */ .content_tra { color: #045ce4; } .table_css_tra{ width: 100%; text-align: center; margin-top: 50px; position: relative; margin: 0 auto; } </style> ```

node 安装http-server报错,这是啥情况

C:\Users\DELL\Desktop\member\member> npm install http-server -g npm ERR! path C:\Program Files\nodejs\node_modules\.staging npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall mkdir npm ERR! Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging' npm ERR! { Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging' npm ERR! cause: npm ERR! { Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\.staging' npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'mkdir', npm ERR! path: 'C:\\Program Files\\nodejs\\node_modules\\.staging' }, npm ERR! stack: 'Error: EPERM: operation not permitted, mkdir \'C:\\Program Files\\nodejs\\node_modules\\.staging\'', npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'mkdir', npm ERR! path: 'C:\\Program Files\\nodejs\\node_modules\\.staging', npm ERR! parent: 'http-server' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It's possible that the file was already in use (by a text editor or antivirus), npm ERR! or that you lack permissions to access it. npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended). npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\DELL\AppData\Roaming\npm-cache\_logs\2018-10-16T07_10_25_840Z-debug.log PS C:\Users\DELL\Desktop\member\member>

ckplayer vue中怎么让视频不要自动加载呢,我是默认暂停的,想要播放的时候再加载

怎么让视频不要自动加载呢,我是默认暂停的,想要播放的时候再加载 ``` videoObject: { container: '', variable: 'player', width: '100%', height: '100%', autoplay: false, poster: '',//封面图 html5m3u8:true, video: 'https://tx.hls.huya.com/huyalive/94525224-2460685722-10568564701724147712-2789253838-10057-A-0-1_1200.m3u8',//视频地址 type: 'm3u8', }, let player = new ckplayer(this.videoObject); ```

微信小程序报错:Ignored attempt to cancel a touchend event with cancelable=false

![图片说明](https://img-ask.csdn.net/upload/201904/20/1555729767_848964.png)![图片说明](https://img-ask.csdn.net/upload/201904/20/1555729776_240154.png) ![图片说明](https://img-ask.csdn.net/upload/201904/22/1555928231_601179.png)![图片说明](https://img-ask.csdn.net/upload/201904/22/1555928239_671888.png) 请问这个问题怎么处理,在视图层我用了一个横向滚动组建数,用以加载对应的据,当加载数据后我点击滑动到末尾的时候,就报了这个错,百度上已经找过了,解决不了这个问题

video.js插件设置的远程地址上的视频,在谷歌浏览器上进度条不能拖动,一拖动就重新播放

ideo.js插件设置的远程地址上的视频,在谷歌浏览器上进度条不能拖动,一拖动就重新播放,不能在进度条上点到哪播放到哪 在别的浏览器上都是可以拖动进度条播放的,求问谷歌浏览器要怎么解决 ``` <!doctype html> <html> <head> <meta charset="utf-8"> <title>Video.js 5.18.4</title> <link href="css/video-js.css" rel="stylesheet"> <!-- If you'd like to support IE8 --> <script src="js/videojs-ie8.min.js"></script> <script src="js/video.min.js"></script> <style> body{background-color: #191919} .m{ width: 1000px; height: 1000; margin-left: auto; margin-right: auto; margin-top: 100px; } </style> </head> <body> <div class="m"> <video id="my-video" class="video-js" controls preload="auto" width="1000" height="800" autoplay="autoplay" data-setup="{}"> <source src="http://192.168.1.56:8550/tools/download.ashx?site=main&id=1020" type="video/mp4"> <p class="vjs-no-js"> To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a> </p> </video> <script type="text/javascript"> var myPlayer = videojs('my-video'); videojs("my-video").ready(function(){ var myPlayer = this; myPlayer.play(); }); </script> </div> </body> </html> ```

X-Frame-Options拒绝加载

<div class="post-text" itemprop="text"> <p>I have a pool of videos in my own server and another company is providing me the geoloc service in a video player that they developed. The problem is that I'm trying to load a simple iframe of my provider just like this:</p> <pre><code>&lt;iframe src="http://myvideoplayerprovider.com/videos/198" width="620px" height="360px" frameborder="0"&gt;&lt;/iframe&gt; </code></pre> <p>The iframe with the video shows up without a problem in Chrome and Safari. However in Firefox the console is giving me this error and is not showing anything on the browser: </p> <pre><code>Load denied by X-Frame-Options: https://www.mydomain.com/ does not permit framing by http://subdomain.mydomain.com/gala8-foo/. </code></pre> <p>I have tried X-Frame-Options in my htaccess without a success and also this php line and nothing changed:</p> <pre><code>&lt;? header('X-Frame-Options: GOFORIT'); ?&gt; </code></pre> <p>Another ideas?</p> </div>

我在数据库中有2条记录Vue输出8条记录

<div class="post-text" itemprop="text"> <p>i am building an online casino using Laravel 5 and Vue JS. i have managed to figure out on my own how to output recently created games for my casino. It's a basic coin flip project and I have been able to figure out how to differentiate between games that are in progress and games that are waiting for a player to join.</p> <p>However, I have created an application that reads a list of available games outputted to a JSON route in routes.php. I use Vue resource to read that JSON output, however, when I view the application in the web browser, I see eight different entries from the JSON that have nothing to do with the database. I am expecting two records to be displayed in the browser, yet 8 empty records are shown. I only have 2 records in my MySQl database.</p> <p>i have two alternating templates that are displayed to the user. one if the game is joinable and the other if it's in progress. The JSON file outputted by Laravel is not read by the Vue application and instead, 8 blank records are displayed on the page. I spent the last two days trying to figure ou this problem and I seem to be stuck. here is my code</p> <p><strong>Viewgames.blade.php</strong></p> <pre><code>@extends('app') @section('content') &lt;strong&gt;Below is a list of joinable games&lt;/strong&gt; &lt;div class="container"&gt; &lt;games&gt;&lt;/games&gt; &lt;/div&gt; &lt;div id="games-list"&gt; &lt;template id="games-template"&gt; &lt;ul class="list-group"&gt; &lt;li class="list-group-item" v-for="game in games"&gt; &lt;div v-if="game.ready === 'Y'"&gt; &lt;strong&gt;play against @{{ game.player1 }}&lt;/strong&gt; &lt;/div&gt; &lt;div v-else&gt; &lt;strong&gt;in progress&lt;/strong&gt; &lt;/div&gt; &lt;/ul&gt; &lt;/template&gt; &lt;/div&gt; &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.26/vue.js"&gt;&lt;/script&gt; &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/vue-resource/1.0.3/vue-resource.js"&gt;&lt;/script&gt; &lt;script src="js/all.js"&gt;&lt;/script&gt; @endsection </code></pre> <p><strong>all.js</strong></p> <pre><code>.component('games', { template: '#games-template', data: function() { return { games: [] } }, created: function() { this.$http.get('api/games').then(function (games) { this.games = games; }.bind(this)); }, </code></pre> <p>});</p> <pre><code>new Vue({ el: 'body' }); </code></pre> <p>EDIT: Controller with query:</p> <pre><code>Route::get('api/games', function() { </code></pre> <p>return App\Games::where('ready', 'Y')-&gt;get();</p> <p>});</p> <p>Any help is greatly appreciated!</p> </div>

Flowplayer抛出错误:Uncaught Flowplayer无法访问元素

<div class="post-text" itemprop="text"> <p>In my project, I am displaying video in many pages. But in one page it is throwing error as </p> <pre><code>Uncaught Flowplayer cannot access element: flowplayer flowplayer-3.2.13.min.js:22 b flowplayer-3.2.13.min.js:22 window.flowplayer.window.$f flowplayer-3.2.13.min.js:22 (anonymous function) </code></pre> <p>I saw lot of posts related to the same and tried according to them. But yet not able to solve this. I am sharing the part of code which is related to the flowplayer.</p> <p>Code:</p> <pre><code>&lt;script src="&lt;?php echo base_url()?&gt;js/flowplayer-3.2.13.min.js"&gt;&lt;/script&gt; &lt;script&gt; $f("flowplayer", { src:"&lt;?php echo base_url()?&gt;js/flowplayer-3.2.18.swf", wmode: "opaque" },{ clip: { autoPlay : "true", autoBuffering : "true", onStart: function() { return true; }, onPause: function() { }, onResume: function() { }, onFinish: function() { } }, }); &lt;/script&gt; &lt;div class="video_playinga right"&gt; &lt;div class="video_playinginner"&gt; &lt;div class="video_frame"&gt; &lt;div class="videoarea"&gt; &lt;/div&gt; &lt;div class="shadow_v"&gt; &lt;a href="&lt;?php echo base_url()?&gt;secure/1/teamwork.mp4" class="fplayer" id="flowplayer"&gt;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>I don't know whether these divs are making the problem. Can anyone help me to solve this?</p> <p>Thanks in advance.</p> </div>

如何在video退出全屏按esc时用js执行操作?

我点击任意一个class为iframe的a按钮,会将alt的地址赋给video的src,然后全屏播放 现在我想做的是按esc退出视频全屏时将video的src地址清空 ``` <div class="vdobox"> <video id="mario-video" controls autoplay="autoplay"> <source src=""> </video> </div> <a alt="http://www.guangfan.com/Public/Gf2016/images/video2.mp4" class="iframe">video2</a> <a alt="http://www.guangfan.com/Public/Gf2016/images/video.mp4" class="iframe">video</a> <h1 id="heool" align="center" style="color: #000;">hello</h1> <script> var aLi = document.querySelectorAll('.iframe'); for (var i = 0; i < aLi.length; i++) { aLi[i].addEventListener('click', function(){ //开始视频弹出事件 var marioVideo = document.getElementById("mario-video"); var hhh=document.getElementById("heool"); document.getElementById("heool").style.color="blue"; if (marioVideo && this) { marioVideo.src=this.getAttribute("alt"); if (marioVideo.requestFullscreen) { marioVideo.requestFullscreen(); } else if (marioVideo.msRequestFullscreen) { marioVideo.msRequestFullscreen(); } else if (marioVideo.mozRequestFullScreen) { marioVideo.mozRequestFullScreen(); } else if (marioVideo.webkitRequestFullScreen) { marioVideo.webkitRequestFullScreen(); } } //结束 } ); } //网上找的退出全屏,不能在video全屏时执行下边的js事件 $(function(){ $(window).keyup(function (event) { if (event.keyCode == 27) { alert("执行退出全屏操作..."); document.getElementById("heool").style.color="black"; } }); }) </script> ```

flvPlayer.swf插件视频播放问题

代码如下,我将播放器代码渲染到id为divVideo的div.如果播放文件路径正确且存在,一切正常,可以播放.如果播放路径错误或者文件名不存在。则浏览器会一直请求直至崩溃。希望把异常捕获出来,不让他重复去一直请求。用了 try catch 没效果。不知道有什么好办法 var oDiv = document.getElementById("divVideo"); oDiv.innerHTML = " <a href='javascript:void(0);' onclick='videoClose()' style='display: block;text-align: left;'>关闭</a> " + " <object type='application/x-shockwave-flash' width='740' height='264' " + " wmode='transparent' data='tools/Flvplayer.swf?vcastr_file=../"+obj.name+"&autostart=true'>" + " <param name='allowFullScreen' value='true' />" + " <param name='movie' value='tools/Flvplayer.swf?vcastr_file=../"+obj.name+"&autostart=true' /> " + " <param name='wmode' value='transparent' /> " + " <param name='SendErrorEvents' value='true' /> " + " <object/> "; 符浏览器控制台错误信息;![图片说明](https://img-ask.csdn.net/upload/201606/17/1466135156_730143.png)![图片说明](https://img-ask.csdn.net/upload/201606/17/1466135313_293188.png)

Pjax无刷新加载页面如何加载js?

使用pjax后网站文章中使用的js代码和latex插件无法被加载,除非重新加载整个页面。 如何解决这个问题,翻了github上的Guide还是一头雾水。求高人指点

只能使用数组语法访问对象属性

<div class="post-text" itemprop="text"> <h1>Background</h1> <p>I have two methods that handle the import of an excel spread sheet, clean up fields (I.e. change "player_name" to "name"), filter out the invalid rows of data and the valid rows of data. If there is invalid data, it is returned to a Vue component, which gives the user the opportunity to correct the invalid data.</p> <p>The initial submission is handled by <code>AdminImportPlayersController@store</code> and subsequent submissions (to fix invalid data) is handled by <code>AdminImportFixedPlayersController@store</code>. </p> <p>Data is <code>collect</code>ed into a <code>Collection</code> upon post.</p> <h1>Problem</h1> <p>With the initial submission, handled by <code>AdminImportPlayersController@store</code> (actually importing the excel file), I can access the data within the <code>Collection</code> with object syntax (i.e. <code>obj-&gt;prop</code>). However, using basically the same code in the <code>AdminImportFixedPlayersController@store</code> controller (still have to refactor, probably abstract body of functionality into a Facade.) is treating the 'object' as an <code>array</code>. Obviously it is actually an <code>array</code>, but I have not worked out why this is.. </p> <p>Controllers are posted below.</p> <h1>Code</h1> <p><code>AdminImportPlayersController@store</code>:</p> <pre><code>/** * Imports players from an excel spreadsheet. * Returns invalid players, if present. * * Teams are represented by their name in the submitted file. * * @param App\HttpRequests\StoreImportPlayersFormRequest $request * @return Illuminate\Http\Response */ public function store(StoreImportPlayersFormRequest $request) { $now = Carbon::now()-&gt;toW3cString(); $fileName = 'players-import-' . $now . '.xls'; // moving imported file to local storage $request-&gt;file('players')-&gt;move(storage_path('/import/excel/'), $fileName); // creating a Collection from the results returned from file $player_data = collect(Excel::load(storage_path('import/excel/') . $fileName)-&gt;get()); // clean up data structure $player_data = $player_data-&gt;map(function ($player) { $player['name'] = $player-&gt;player_name; unset($player['player_name']); return $player; }); // get all invalid entries $invalid_player_data = $player_data-&gt;filter(function ($player) { \Log::info($player); return ! Team::where('name', $player-&gt;team)-&gt;first() || $player-&gt;name == null; })-&gt;values(); // get all valid entries $valid_player_data = $player_data-&gt;filter(function ($player) { return Team::where('name', $player-&gt;team)-&gt;first() &amp;&amp; $player-&gt;name !== null; })-&gt;values(); // save players $valid_player_data-&gt;each(function ($player) { $team = Team::where('name', $player-&gt;team)-&gt;first(); $team-&gt;players()-&gt;attach( Player::create([ 'name' =&gt; $player-&gt;name, 'temp' =&gt; 0, ]) ); }); return response()-&gt;json(['invalid_player_data' =&gt; $invalid_player_data-&gt;all()], 200); } </code></pre> <p><code>AdminImportFixedPlayersController@store</code>:</p> <pre><code>/** * Stores fixed player data, after re-submission due to invalid data. * Returns invalid players, if still present. * Teams are represented by their id. * * @param App\Http\Requests\StoreImportFixedPlayersFormRequest $request * @return Illuminate\Http\Response */ public function store(StoreImportFixedPlayersFormRequest $request) { $player_data = collect($request-&gt;players); // get all invalid entries $invalid_player_data = $player_data-&gt;filter(function ($player) { return ! Team::where('id', $player['team'])-&gt;first() || $player['name'] == null; })-&gt;values(); // get all valid entries $valid_player_data = $player_data-&gt;filter(function ($player) { return Team::where('id', $player['team'])-&gt;first() &amp;&amp; $player['name'] !== null; })-&gt;values(); // save players $valid_player_data-&gt;each(function ($player) { $team = Team::where('id', $player['team'])-&gt;first(); $team-&gt;players()-&gt;attach( Player::create([ 'name' =&gt; $player['name'], 'temp' =&gt; 0, ]) ); }); return response()-&gt;json(['invalid_player_data' =&gt; $invalid_player_data-&gt;all()], 200); } </code></pre> <p>Note that when saying something like </p> <pre><code>return ! Team::where('id', $player-&gt;team)-&gt;first() || $player-&gt;name == null; </code></pre> <p>in <code>AdminImportPlayersController</code> (the controller that handles the initial importation), it is legal and no exceptions are thrown.</p> <p>However, the same code, when used in <code>AdminImportFixedPlayersController</code>, throws an exception and I can only legally use the following syntax:</p> <pre><code>return ! Team::where('id', $player['team'])-&gt;first() || $player['name'] == null; </code></pre> <p>Sorry for the lengthy question, just like to be thorough!</p> <p>Please ask for more information if needed.</p> <p>I have logged out the values for the <code>$player_data</code> in both methods at various locations. The value of <code>$player_data</code>, in <code>AdminImportFixedPlayersController</code>, after being collected from the request is equal to something like:</p> <pre><code>[{"name": "ashley", "team" : 1}, ..., ...]. </code></pre> <p>Why can't I access the properties of these objects, without using array-like syntax?</p> </div>

尝试在页面上嵌入多个视频,但无论我尝试什么,都只会出现1个视频

<div class="post-text" itemprop="text"> <p>So I have Custom Forms plugin installed and these custom forms are mostly text editors that appear in each users portal in the Users left tab area. Embedding videos work great, which is why I need this (different videos of each user) but for some reason I can't add more than 1 video on the page.</p> <p>(Straddle, follow along, hip extension, etc are all names of pages that the video playlist needs to appear in.)</p> <pre><code>&lt;?php /*Template Name: following-temp */ $userID=get_current_user_id(); ?&gt; &lt;?php if(isset($_GET['lesson'])){ $lesson_id = $_GET['lesson']; $lesson_name = $_GET['lessonname']; } ?&gt; &lt;?php get_header(); ?&gt; &lt;style&gt; .embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } &lt;/style&gt; &lt;div class="container"&gt; &lt;div class="row"&gt; &lt;div class="col-lg-12"&gt; &lt;h1 class="page-header"&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt; &lt;ol class="breadcrumb"&gt; &lt;li&gt;&lt;a href="/"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="/courses/myflex/"&gt;Return to Modules&lt;/a&gt; . &lt;/li&gt; &lt;li&gt;&lt;a href="/myflexibility-profile/"&gt;MyFLEXibility Profile&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;?php the_title(); ?&gt;&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;?php $post_thumbnail = get_the_post_thumbnail( $lesson_id ); echo "&lt;div class='col-lg-8'&gt;"; $title = get_the_title($lesson_id); if ('Warm-Ups' == $lesson_name) { $title = 'Warm Ups'; } if ('Cool-Down' == $lesson_name) { $title = 'Cool Down'; } echo "&lt;h2 class='title'&gt;" . $title . "&lt;/h2&gt;"; echo "&lt;div class='embed-container'&gt;"; /* if warm up is requested to add again, uncomment this one if($lesson_id == 570){ $post_12 = get_post(2285); echo "&lt;h2 class='fav'&gt; Warm up &lt;h2&gt;"; $trim_me = $post_12-&gt;post_content; echo $trim_me; } */ // echo get_field("follow_along_video",$lesson_id); if ('Warm-Ups' == $lesson_name) { ?&gt; &lt;iframe src="https://player.vimeo.com/video/311167472" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt; &lt;?php } if ('Hip-Extension' == $lesson_name) { the_field('followalong_-_hip_extension_video_embed', 'user_'.get_current_user_id()); } if ('Pike' == $lesson_name) { the_field('followalong_-_pike_video_embed', 'user_'.get_current_user_id()); } if ('Straddle' == $lesson_name) { the_field('followalong_-_straddle_video_embed', 'user_'.get_current_user_id()); } if ('Shoulders-and-Upper-Back' == $lesson_name) { the_field('followalong_-_shoulders_video_embed', 'user_'.get_current_user_id()); } if ('Cool-Down' == $lesson_name) { ?&gt; &lt;iframe src="https://player.vimeo.com/video/311167475" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt; &lt;?php } echo "&lt;/div&gt;"; echo "&lt;/div&gt;"; ?&gt; &lt;div class="col-lg-4"&gt; &lt;div class="hidden-md hidden-lg" style="width:100%; height:40px;"&gt;&lt;hr&gt;&lt;/div&gt; &lt;div class="well well-sidebar-rep2"&gt;&lt;h4&gt;Navigation&lt;/h4&gt; &lt;div id="course_navigation" class="course_navigation"&gt; &lt;div class="ld-course-navigation-widget-content- contaiiner"&gt; &lt;div class="learndash_navigation_lesson_topics_list"&gt; &lt;div class="inactive" id="lesson_list-568"&gt; &lt;div class="list_arrow collapse lesson_incomplete"&gt;&lt;/div&gt; &lt;div class="list_lessons"&gt; &lt;div class="lesson "&gt; &lt;a href="/my-video-single/? single=follow-along"&gt;Return to Categories&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="inactive" id="lesson_list-569"&gt; &lt;div class="list_arrow collapse lesson_incomplete"&gt; &lt;/div&gt; &lt;div class="list_lessons"&gt; &lt;div class="lesson"&gt; &lt;a href="/courses/myflex/"&gt;Return to Modules&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="inactive" id="lesson_list-570"&gt; &lt;div class="list_arrow collapse lesson_incomplete"&gt;&lt;/div&gt; &lt;div class="list_lessons"&gt; &lt;div class="lesson "&gt; &lt;a href="/myflexibility- profile/"&gt;Return to MyFLEX&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="widget_course_return"&gt; Return to &lt;a href="&lt;?php echo home_url(); ? &gt;"&gt;HOME&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- Closing &lt;div id='course_navigation'&gt; --&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php echo "&lt;div class='col-lg-8' style='margin-bottom:100px'&gt;"; $all_lesson = $wpdb-&gt;get_results("SELECT result_data,quiz_id,result_percentage FROM `wp_custom_learndash` WHERE `lesson_id` = $lesson_id AND user_id = $userID ORDER BY `id` ASC"); $array_type_vid = []; $result_percentage = []; $iter=0; foreach ($all_lesson as $key=&gt;$value_lesson) { $result_percentage[$value_lesson-&gt;quiz_id] = $value_lesson- &gt;result_percentage; $data_vid = json_decode($value_lesson-&gt;result_data); $quiz_id = $value_lesson-&gt;quiz_id; $dom = new DOMDocument; if (strpos($data_vid-&gt;data, 'class') !== false) { $dom-&gt;loadHTML($data_vid-&gt;data); foreach($dom-&gt;getElementsByTagName('div') as $node){ $array_type_vid[$quiz_id][$iter][$node- &gt;getAttribute('class')] = $dom-&gt;saveHTML($node); $iter++; } }else{ $data_vid = json_decode($value_lesson-&gt;result_data); if($data_vid-&gt;data !== 0){ echo $data_vid-&gt;data."&lt;br&gt;"; } } } #generating the videos here foreach ($array_type_vid as $qkey =&gt; $value) { foreach ($value as $nkey =&gt; $item) { #default follow along results if (array_key_exists("follow_along",$item)){ echo "&lt;div class='ins- vid'&gt;".$item['follow_along']."&lt;/div&gt;"; } } #default test value $qkey_data = get_field( "follow_along_video_test_default",$qkey); echo $qkey_data; #for pike active passive test solution if($qkey == 1339){ if($result_percentage[$qkey] &gt;= 80){ echo get_field( "pike_more_80_follow_along",$qkey); }elseif($result_percentage[$qkey] &lt; 80){ echo get_field( "pike_less_80_follow_along",$qkey); } } #for straddle extra video if($qkey == 1473){ if($result_percentage[$qkey] &gt;= 100){ echo get_field( "straddle_over_100_follow_along",$qkey); }elseif($result_percentage[$qkey] &lt; 100){ echo get_field( "straddle_less_100_follow_along",$qkey); } } } /* if cool down is requested to add again, uncomment this one if($lesson_id == 1325){ $post_12 = get_post(2287); echo "&lt;h2 class='fav'&gt; Cool Down &lt;/h2&gt;"; $trim_me = $post_12-&gt;post_content; echo $trim_me; } */ ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;style type="text/css"&gt; h2:not(.title){ font-size: 20px !important; font-weight: 600 !important; padding-left: 45px !important; } &lt;/style&gt; &lt;?php get_footer(); ?&gt; </code></pre> <p><strong>CONSOLE ERRORS</strong></p> <p>JQMIGRATE: Migrate is installed, version 1.4.1 ?lesson=570&amp;lessonname=Hip-Extension&amp;vimeography_gallery=7&amp;vimeography_video=310906063:1 Unchecked runtime.lastError: The message port closed before a response was received. 3vue.esm.js:8651 Vimeography: gallery progress is 0.1126005361930295 fresnel.vimeocdn.com/add/player-stats?session-id=27bc08551410cb3482978a833950cc8826d552d51557937629:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT 2?lesson=570&amp;lessonname=Hip-Extension&amp;vimeography_gallery=7&amp;vimeography_video=310906063:1 Uncaught SyntaxError: Unexpected token ; fresnel.vimeocdn.com/add/player-stats?session-id=27bc08551410cb3482978a833950cc8826d552d51557937629:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT vue.esm.js:8651 Vimeography: gallery progress is 0.1126005361930295</p> </div>

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

Intellij IDEA 实用插件安利

1. 前言从2020 年 JVM 生态报告解读 可以看出Intellij IDEA 目前已经稳坐 Java IDE 头把交椅。而且统计得出付费用户已经超过了八成(国外统计)。IDEA 的...

搜狗输入法也在挑战国人的智商!

故事总是一个接着一个到来...上周写完《鲁大师已经彻底沦为一款垃圾流氓软件!》这篇文章之后,鲁大师的市场工作人员就找到了我,希望把这篇文章删除掉。经过一番沟通我先把这篇文章从公号中删除了...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

魂迁光刻,梦绕芯片,中芯国际终获ASML大型光刻机

据羊城晚报报道,近日中芯国际从荷兰进口的一台大型光刻机,顺利通过深圳出口加工区场站两道闸口进入厂区,中芯国际发表公告称该光刻机并非此前盛传的EUV光刻机,主要用于企业复工复产后的生产线扩容。 我们知道EUV主要用于7nm及以下制程的芯片制造,光刻机作为集成电路制造中最关键的设备,对芯片制作工艺有着决定性的影响,被誉为“超精密制造技术皇冠上的明珠”,根据之前中芯国际的公报,目...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

百度工程师,获利10万,判刑3年!

所有一夜暴富的方法都写在刑法中,但总有人心存侥幸。这些年互联网犯罪高发,一些工程师高技术犯罪更是引发关注。这两天,一个百度运维工程师的案例传遍朋友圈。1...

程序员为什么千万不要瞎努力?

本文作者用对比非常鲜明的两个开发团队的故事,讲解了敏捷开发之道 —— 如果你的团队缺乏统一标准的环境,那么即使勤劳努力,不仅会极其耗时而且成果甚微,使用...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《Oracle Java SE编程自学与面试指南》最佳学习路线图2020年最新版(进大厂必备)

正确选择比瞎努力更重要!

字节跳动面试官竟然问了我JDBC?

轻松等回家通知

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

实时更新:计算机编程语言排行榜—TIOBE世界编程语言排行榜(2020年6月份最新版)

内容导航: 1、TIOBE排行榜 2、总榜(2020年6月份) 3、本月前三名 3.1、C 3.2、Java 3.3、Python 4、学习路线图 5、参考地址 1、TIOBE排行榜 TIOBE排行榜是根据全世界互联网上有经验的程序员、课程和第三方厂商的数量,并使用搜索引擎(如Google、Bing、Yahoo!)以及Wikipedia、Amazon、YouTube统计出排名数据。

阿里面试官让我用Zk(Zookeeper)实现分布式锁

他可能没想到,我当场手写出来了

立即提问
相关内容推荐