m3u8到底是什么格式?一篇文章搞定m3u8下载

注入代码

;gutter:true;
// 注入html
let $section = document.createElement('section')
$section.innerHTML =

m3u8 downloader

/全局设置/
html, body {
margin: 0;
padding: 0;
}
body::-webkit-scrollbar { display: none}
p {
margin: 0;
}
[v-cloak] {
display: none;
}
#m-app {
height: 100%;
width: 100%;
text-align: center;
padding: 10px 50px 80px;
box-sizing: border-box;
}
.m-p-action {
margin: 20px auto;
max-width: 1100px;
width: 100%;
font-size: 35px;
text-align: center;
font-weight: bold;
}
.m-p-other, .m-p-tamper, .m-p-github, .m-p-language {
position: fixed;
right: 50px;
background-color: #eff3f6;
background-image: linear-gradient(-180deg, #fafbfc, #eff3f6 90%);
color: #24292e;
border: 1px solid rgba(27, 31, 35, .2);
border-radius: 3px;
cursor: pointer;
display: inline-block;
font-size: 14px;
font-weight: 600;
line-height: 20px;
padding: 6px 12px;
z-index: 99;
}
.m-p-help {
position: fixed;
right: 50px;
top: 50px;
width: 30px;
height: 30px;
color: #666666;
z-index: 2;
line-height: 30px;
font-weight: bolder;
border-radius: 50%;
border: 1px solid rgba(27, 31, 35, .2);
cursor: pointer;
background-color: #eff3f6;
background-image: linear-gradient(-180deg, #fafbfc, #eff3f6 90%);
}
.m-p-github:hover, .m-p-other:hover, .m-p-tamper:hover, .m-p-help:hover, .m-p-language:hover {
opacity: 0.9;
}
.m-p-language {
bottom: 70px;
}
.m-p-other {
bottom: 110px;
}
.m-p-tamper {
bottom: 30px;
}
.m-p-github {
bottom: 150px;
}
/广告/
.m-p-refer {
position: absolute;
left: 50px;
bottom: 50px;
}
.m-p-refer .text {
position: absolute;
top: -80px;
left: -40px;
animation-name: upAnimation;
transform-origin: center bottom;
animation-duration: 2s;
animation-fill-mode: both;
animation-iteration-count: infinite;
animation-delay: .5s;
}
.m-p-refer .close {
display: block;
position: absolute;
top: -110px;
right: -50px;
padding: 0;
margin: 0;
width: 50px;
height: 50px;
border-radius: 50%;
border: none;
cursor: pointer;
z-index: 3;
transition: 0.3s all;
background-size: 30px 30px;
background-repeat: no-repeat;
background-position: center center;
background-image: url(https://blog.luckly-mjw.cn/tool-show/m3u8-downloader/imgs/close.png);
background-color: rgba(0, 0, 0, 0.5);
}
.m-p-refer .close:hover {
background-color: rgba(0, 0, 0, 0.8);
}
.m-p-refer .link {
border-radius: 4px;
text-decoration: none;
background-color: #4E84E6;
transition: 0.3s all;
}
.m-p-refer .link:hover {
top: -10px;
color: #333333;
border: 1px solid transparent;
background: rgba(0, 0, 0, 0.6);
box-shadow: 2px 11px 20px 0 rgba(0, 0, 0, 0.6);
}
@keyframes upAnimation {
0% {
transform: rotate(0deg);
transition-timing-function: cubic-bezier(0.215, .61, .355, 1)
}

10% {
  transform: rotate(-12deg);
  transition-timing-function: cubic-bezier(0.215, .61, .355, 1)
}

20% {
  transform: rotate(12deg);
  transition-timing-function: cubic-bezier(0.215, .61, .355, 1)
}

28% {
  transform: rotate(-10deg);
  transition-timing-function: cubic-bezier(0.215, .61, .355, 1)
}

36% {
  transform: rotate(10deg);
  transition-timing-function: cubic-bezier(0.755, .5, .855, .06)
}

42% {
  transform: rotate(-8deg);
  transition-timing-function: cubic-bezier(0.755, .5, .855, .06)
}

48% {
  transform: rotate(8deg);
  transition-timing-function: cubic-bezier(0.755, .5, .855, .06)
}

52% {
  transform: rotate(-4deg);
  transition-timing-function: cubic-bezier(0.755, .5, .855, .06)
}

56% {
  transform: rotate(4deg);
  transition-timing-function: cubic-bezier(0.755, .5, .855, .06)
}

60% {
  transform: rotate(0deg);
  transition-timing-function: cubic-bezier(0.755, .5, .855, .06)
}

100% {
  transform: rotate(0deg);
  transition-timing-function: cubic-bezier(0.215, .61, .355, 1)
}

}
/顶部信息录入/
.m-p-temp-url {
padding-top: 50px;
padding-bottom: 10px;
width: 100%;
color: #999999;
text-align: left;
font-style: italic;
word-break: break-all;
}
.m-p-input-container {
display: flex;
}
.m-p-input-container input {
flex: 1;
margin-bottom: 30px;
display: block;
width: 280px;
padding: 16px;
font-size: 24px;
border-radius: 4px;
box-shadow: none;
color: #444444;
border: 1px solid #cccccc;
}
.m-p-input-container .range-input {
margin-left: 10px;
flex: 0 0 100px;
width: 100px;
box-sizing: border-box;
}
.m-p-input-container div {
position: relative;
display: inline-block;
margin-left: 10px;
height: 60px;
line-height: 60px;
font-size: 24px;
color: white;
cursor: pointer;
border-radius: 4px;
border: 1px solid #eeeeee;
background-color: #3D8AC7;
opacity: 1;
transition: 0.3s all;
}
.m-p-input-container div:hover {
opacity: 0.9;
}
.m-p-input-container div {
width: 200px;
}
.m-p-input-container .disable {
cursor: not-allowed;
background-color: #dddddd;
}
/下载状态/
.m-p-line {
margin: 20px 0 50px;
vertical-align: top;
width: 100%;
height: 5px;
border-bottom: dotted;
}
.m-p-tips {
width: 100%;
color: #999999;
text-align: left;
font-style: italic;
word-break: break-all;
}
.m-p-tips p {
width: 100px;
display: inline-block;
}
.m-p-segment {
text-align: left;
}
.m-p-segment .item {
display: inline-block;
margin: 10px 6px;
width: 50px;
height: 40px;
color: white;
line-height: 40px;
text-align: center;
border-radius: 4px;
cursor: help;
border: solid 1px #eeeeee;
background-color: #dddddd;
}
.m-p-segment .finish {
background-color: #0ACD76;
}
.m-p-segment .error {
cursor: pointer;
background-color: #DC5350;
}
.m-p-cross, .m-p-final {
display: inline-block;
width: 100%;
height: 50px;
line-height: 50px;
font-size: 20px;
color: white;
cursor: pointer;
border-radius: 4px;
border: 1px solid #eeeeee;
background-color: #3D8AC7;
opacity: 1;
transition: 0.3s all;
}
.m-p-final {
margin-top: 10px;
text-decoration: none;
}
.m-p-force, .m-p-retry {
position: absolute;
right: 50px;
display: inline-block;
padding: 6px 12px;
font-size: 18px;
color: white;
cursor: pointer;
border-radius: 4px;
border: 1px solid #eeeeee;
background-color: #3D8AC7;
opacity: 1;
transition: 0.3s all;
}
.m-p-retry {
right: 250px;
}
.m-p-force:hover, .m-p-retry:hover {
opacity: 0.9;
}

页面加载中,请耐心等待…

推荐一个 m3u8 网页版提取工具,无需下载软件,打开网站即可下载,自动检测,一键下载。
工具链接:https://blog.luckly-mjw.cn/tool-show/m3u8-downloader/index.html
工具教程:https://segmentfault.com/a/1190000021847172?_ea=32289224

{{tips}}
?
手动添加油猴插件
github
其他实用工具
English version

测试链接:http://1257120875.vod2.myqcloud.com/0ef121cdvodtransgzp1257120875/3055695e5285890780828799271/v.f230.m3u8

  特定范围下载

  原格式下载
  转码为MP4下载

下载完成
{{ isPause ? '恢复下载' : '暂停下载' }}

当无法下载,资源发生跨域限制时,在视频源页面打开控制台,注入代码解决,点击本按钮复制代码
下载的视频看不了?试试这个终结解决方案「无差别视频提取工具」,有配套「油猴」插件啦!!!

重新下载错误片段
强制下载现有片段
待下载碎片总量:{{ rangeDownload.targetSegment }},已下载:{{ finishNum }},错误:{{ errorNum }},进度:{{ (finishNum / rangeDownload.targetSegment * 100).toFixed(2) }}%
若某视频碎片下载发生错误,将标记为红色,可点击相应图标进行重试

  {{ index + 1 }}

var _hmt = _hmt || [];
(function () {
var hm = document.createElement(“script”);
hm.src = “https://hm.baidu.com/hm.js?1f12b0865d866ae1b93514870d93ce89”;
var s = document.getElementsByTagName(“script”)[0];
s.parentNode.insertBefore(hm, s);
})();

$section.style.width = '100%' $section.style.height = '800px' $section.style.top = '0' $section.style.left = '0' $section.style.position = 'relative' $section.style.zIndex = '9999' $section.style.backgroundColor = 'white' document.body.appendChild($section);</p> <pre><code> // 加载 ASE 解密 let $ase = document.createElement('script') $ase.src = 'https://blog.luckly-mjw.cn/tool-show/m3u8-downloader/aes-decryptor.js' // 加载 mp4 转码 let $mp4 = document.createElement('script') $mp4.src = 'https://blog.luckly-mjw.cn/tool-show/m3u8-downloader/mux-mp4.js' // 加载 vue let $vue = document.createElement('script') $vue.src = 'https://blog.luckly-mjw.cn/tool-show/m3u8-downloader/vue.js' // 监听 vue 加载完成,执行业务代码 $vue.addEventListener('load', () => { </code></pre> <p>document.getElementById('loading') && document.getElementById('loading').remove() new Vue({ el: '#m-app',</p> <p>data() { return { url: '', // 在线链接 tips: 'm3u8 视频在线提取工具', // 顶部提示 isPause: false, // 是否暂停下载 isGetMP4: false, // 是否转码为 MP4 下载 durationSecond: 0, // 视频持续时长 isShowRefer: true, // 是否显示推送 downloading: false, // 是否下载中 beginTime: '', // 开始下载的时间 errorNum: 0, // 错误数 finishNum: 0, // 已下载数 downloadIndex: 0, // 当前下载片段 finishList: [], // 下载完成项目 tsUrlList: [], // ts URL数组 mediaFileList: [], // 下载的媒体数组 rangeDownload: { // 特定范围下载 isShowRange: false, // 是否显示范围下载 startSegment: '', // 起始片段 endSegment: '', // 截止片段 targetSegment: 1, // 待下载片段 }, aesConf: { // AES 视频解密配置 method: '', // 加密算法 uri: '', // key 所在文件路径 iv: '', // 偏移值 key: '', // 秘钥 decryptor: null, // 解码器对象</p> <pre><code> stringToBuffer: function (str) { return new TextEncoder().encode(str) }, }, } </code></pre> <p>},</p> <p>created() { this.getSource(); window.addEventListener('keyup', this.onKeyup) },</p> <p>beforeDestroy() { window.removeEventListener('keyup', this.onKeyup) },</p> <p>methods: { // 获取链接中携带的资源链接 getSource() { let { href } = location if (href.indexOf('?source=') > -1) { this.url = href.split('?source=')[1] } },</p> <pre><code>// 退出弹窗 onKeyup(event) { if (event.keyCode === 13) { // 键入ESC this.getM3U8() } }, // ajax 请求 ajax(options) { options = options || {}; let xhr = new XMLHttpRequest(); if (options.type === 'file') { xhr.responseType = 'arraybuffer'; } xhr.onreadystatechange = function () { if (xhr.readyState === 4) { let status = xhr.status; if (status >= 200 && status < 300) { options.success && options.success(xhr.response); } else { options.fail && options.fail(status); } } }; xhr.open("GET", options.url, true); xhr.send(null); }, // 合成URL applyURL(targetURL, baseURL) { baseURL = baseURL || location.href if (targetURL.indexOf('http') === 0) { return targetURL } else if (targetURL[0] === '/') { let domain = baseURL.split('/') return domain[0] + '//' + domain[2] + targetURL } else { let domain = baseURL.split('/') domain.pop() return domain.join('/') + '/' + targetURL } }, // 解析为 mp4 下载 getMP4() { this.isGetMP4 = true this.getM3U8() }, // 获取在线文件 getM3U8(onlyGetRange) { if (!this.url) { alert('请输入链接') return } if (this.url.toLowerCase().indexOf('.m3u8') === -1) { alert('链接有误,请重新输入') return } if (this.downloading) { alert('资源下载中,请稍后') return } // 在下载页面才触发,代码注入的页面不需要校验 // 当前协议不一致,切换协议 if (location.href.indexOf('blog.luckly-mjw.cn') > -1 && this.url.indexOf(location.protocol) === -1) { //alert('当前协议不一致,跳转至正确页面重新下载') location.href = ${this.url.split(‘:’)[0]}://blog.luckly-mjw.cn/tool-show/m3u8-downloader/index.html?source=${this.url} return } // 在下载页面才触发,修改页面 URL,携带下载路径,避免刷新后丢失 if (location.href.indexOf('blog.luckly-mjw.cn') > -1) { window.history.replaceState(null, '', ${location.href.split(‘?’)[0]}?source=${this.url}) } this.tips = 'm3u8 文件下载中,请稍后' this.beginTime = new Date() this.ajax({ url: this.url, success: (m3u8Str) => { this.tsUrlList = [] this.finishList = [] // 提取 ts 视频片段地址 m3u8Str.split('\n').forEach((item) => { if (item.toLowerCase().indexOf('.ts') > -1 || item.toLowerCase().indexOf('.image') > -1) { this.tsUrlList.push(this.applyURL(item, this.url)) this.finishList.push({ title: item, status: '' }) } }) // 仅获取视频片段数 if (onlyGetRange) { this.rangeDownload.isShowRange = true this.rangeDownload.endSegment = this.tsUrlList.length this.rangeDownload.targetSegment = this.tsUrlList.length return } else { let startSegment = Math.max(this.rangeDownload.startSegment || 1, 1) // 最小为 1 let endSegment = Math.max(this.rangeDownload.endSegment || this.tsUrlList.length, 1) startSegment = Math.min(startSegment, this.tsUrlList.length) // 最大为 this.tsUrlList.length endSegment = Math.min(endSegment, this.tsUrlList.length) this.rangeDownload.startSegment = Math.min(startSegment, endSegment) this.rangeDownload.endSegment = Math.max(startSegment, endSegment) this.rangeDownload.targetSegment = this.rangeDownload.endSegment - this.rangeDownload.startSegment + 1 this.downloadIndex = this.rangeDownload.startSegment - 1 this.downloading = true } // 获取需要下载的 MP4 视频长度 if (this.isGetMP4) { let infoIndex = 0 m3u8Str.split('\n').forEach(item => { if (item.toUpperCase().indexOf('#EXTINF:') > -1) { // 计算视频总时长,设置 mp4 信息时使用 infoIndex++ if (this.rangeDownload.startSegment -1) { this.aesConf.method = (m3u8Str.match(/(.*METHOD=([^,\s]+))/) || ['', '', ''])[2] this.aesConf.uri = (m3u8Str.match(/(.*URI="([^"]+))"/) || ['', '', ''])[2] this.aesConf.iv = (m3u8Str.match(/(.*IV=([^,\s]+))/) || ['', '', ''])[2] this.aesConf.iv = this.aesConf.iv ? this.aesConf.stringToBuffer(this.aesConf.iv) : '' this.aesConf.uri = this.applyURL(this.aesConf.uri, this.url) // let params = m3u8Str.match(/#EXT-X-KEY:([^,]*,?METHOD=([^,]+))?([^,]*,?URI="([^,]+)")?([^,]*,?IV=([^,^\n]+))?/) // this.aesConf.method = params[2] // this.aesConf.uri = this.applyURL(params[4], this.url) // this.aesConf.iv = params[6] ? this.aesConf.stringToBuffer(params[6]) : '' this.getAES(); } else if (this.tsUrlList.length > 0) { // 如果视频没加密,则直接下载片段,否则先下载秘钥 this.downloadTS() } else { this.alertError('资源为空,请查看链接是否有效') } }, fail: () => { this.alertError('链接不正确,请查看链接是否有效') } }) }, // 获取AES配置 getAES() { alert('视频被 AES 加密,点击确认,进行视频解码') this.ajax({ type: 'file', url: this.aesConf.uri, success: (key) => { // console.log('getAES', key) // this.aesConf.key = this.aesConf.stringToBuffer(key) this.aesConf.key = key this.aesConf.decryptor = new AESDecryptor() this.aesConf.decryptor.constructor() this.aesConf.decryptor.expandKey(this.aesConf.key); this.downloadTS() }, fail: () => { this.alertError('视频已进行定制化加密,不提供定制化解密下载') } }) }, // ts 片段的 AES 解码 aesDecrypt(data, index) { let iv = this.aesConf.iv || new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, index]) return this.aesConf.decryptor.decrypt(data, 0, iv.buffer || iv, true) }, // 下载分片 downloadTS() { this.tips = 'ts 视频碎片下载中,请稍后' let download = () => { let isPause = this.isPause // 使用另一个变量来保持下载前的暂停状态,避免回调后没修改 let index = this.downloadIndex this.downloadIndex++ if (this.finishList[index] && this.finishList[index].status === '') { this.ajax({ url: this.tsUrlList[index], type: 'file', success: (file) => { this.dealTS(file, index, () => this.downloadIndex < this.rangeDownload.endSegment && !isPause && download()) }, fail: () => { this.errorNum++ this.finishList[index].status = 'error' if (this.downloadIndex < this.rangeDownload.endSegment) { !isPause && download() } } }) } else if (this.downloadIndex < this.rangeDownload.endSegment) { // 跳过已经成功的片段 !isPause && download() } } // 建立多少个 ajax 线程 for (let i = 0; i < Math.min(10, this.rangeDownload.targetSegment - this.finishNum); i++) { download(i) } }, // 处理 ts 片段,AES 解密、mp4 转码 dealTS(file, index, callback) { const data = this.aesConf.uri ? this.aesDecrypt(file, index) : file this.conversionMp4(data, index, (afterData) => { // mp4 转码 this.mediaFileList[index - this.rangeDownload.startSegment + 1] = afterData // 判断文件是否需要解密 this.finishList[index].status = 'finish' this.finishNum++ if (this.finishNum === this.rangeDownload.targetSegment) { this.downloadFile(this.mediaFileList, this.formatTime(this.beginTime, 'YYYY_MM_DD hh_mm_ss')) } callback && callback() }) }, // 转码为 mp4 conversionMp4(data, index, callback) { if (this.isGetMP4) { let transmuxer = new muxjs.Transmuxer({ keepOriginalTimestamps: true, duration: parseInt(this.durationSecond), }); transmuxer.on('data', segment => { if (index === this.rangeDownload.startSegment - 1) { let data = new Uint8Array(segment.initSegment.byteLength + segment.data.byteLength); data.set(segment.initSegment, 0); data.set(segment.data, segment.initSegment.byteLength); callback(data.buffer) } else { callback(segment.data) } }) transmuxer.push(new Uint8Array(data)); transmuxer.flush(); } else { callback(data) } }, // 暂停与恢复 togglePause() { this.isPause = !this.isPause !this.isPause && this.retryAll() }, // 重新下载某个片段 retry(index) { if (this.finishList[index].status === 'error') { this.finishList[index].status = '' this.ajax({ url: this.tsUrlList[index], type: 'file', success: (file) => { this.errorNum-- this.dealTS(file, index) }, fail: () => { this.finishList[index].status = 'error' } }) } }, // 重新下载所有错误片段 retryAll() { this.finishList.forEach((item) => { // 重置所有片段状态 if (item.status === 'error') { item.status = '' } }) this.errorNum = 0 this.downloadIndex = this.rangeDownload.startSegment - 1 this.downloadTS() }, // 下载整合后的TS文件 downloadFile(fileDataList, fileName) { this.tips = 'ts 碎片整合中,请留意浏览器下载' let fileBlob = null let a = document.createElement('a') if (this.isGetMP4) { fileBlob = new Blob(fileDataList, { type: 'video/mp4' }) // 创建一个Blob对象,并设置文件的 MIME 类型 a.download = fileName + '.mp4' } else { fileBlob = new Blob(fileDataList, { type: 'video/MP2T' }) // 创建一个Blob对象,并设置文件的 MIME 类型 a.download = fileName + '.ts' } a.href = URL.createObjectURL(fileBlob) a.style.display = 'none' document.body.appendChild(a) a.click() a.remove() }, // 格式化时间 formatTime(date, formatStr) { const formatType = { Y: date.getFullYear(), M: date.getMonth() + 1, D: date.getDate(), h: date.getHours(), m: date.getMinutes(), s: date.getSeconds(), } return formatStr.replace( /Y+|M+|D+|h+|m+|s+/g, target => (new Array(target.length).join('0') + formatType[target[0]]).substr(-target.length) ) }, // 强制下载现有片段 forceDownload() { if (this.mediaFileList.length) { this.downloadFile(this.mediaFileList, this.formatTime(this.beginTime, 'YYYY_MM_DD hh_mm_ss')) } else { alert('当前无已下载片段') } }, // 发生错误,进行提示 alertError(tips) { alert(tips) this.downloading = false this.tips = 'm3u8 视频在线提取工具'; }, // 拷贝本页面本身,解决跨域问题 copyCode() { if (this.tips !== '代码下载中,请稍后') { this.tips = '代码下载中,请稍后'; this.ajax({ url: './index.html', success: (fileStr) => { let fileList = fileStr.split(

`

Original: https://www.cnblogs.com/brady-wang/p/15850442.html
Author: brady-wang
Title: m3u8到底是什么格式?一篇文章搞定m3u8下载

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/546298/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

  • Kubernetes 存储卷详解

    转载自:https://mp.weixin.qq.com/s/Ywx3ju6FP0IShOgI757XYA Volumes 默认情况下容器中的磁盘文件是非持久化的,对于运行在容器中…

    技术杂谈 2023年5月30日
    080
  • 小熊飞桨练习册-07PaddleX寻找火箭车车

    小熊飞桨练习册-07PaddleX寻找火箭车车 简介 小熊飞桨练习册-07PaddleX寻找火箭车车,是学习目标检测小项目,本项目开发和测试均在 Ubuntu 20.04 系统下进…

    技术杂谈 2023年7月23日
    078
  • Ubuntu下firebird数据库的安装和配置

    1、简介 本文主要是 Ubuntu 下 firebird 数据库的安装和目录迁移,同样适用于 Debian系统:Ubuntu 20.0.4firebird:3.0注意:文中运行的命…

    技术杂谈 2023年7月24日
    072
  • 剑指offer计划27(栈与队列困难)—java

    1.1、题目1 剑指 Offer 59 – I. 滑动窗口的最大值 1.2、解法 解题思路:(来自作者bigbeats) 相当于维护一个最大队列(队头元素最大,向队尾非…

    技术杂谈 2023年7月25日
    096
  • JAVA基础学习第二天!

    精华笔记: 1.变量:存数的 -声明:—————在银行开了个帐户 -初始化:———&…

    技术杂谈 2023年7月11日
    056
  • 彰显个性│博客园的自定义主题

    404. 抱歉,您访问的资源不存在。 可能是网址有误,或者对应的内容被删除,或者处于私有状态。 代码改变世界,联系邮箱 contact@cnblogs.com 园子的商业化努力-困…

    技术杂谈 2023年7月11日
    065
  • Codeforces Round #750 (Div. 2)

    Codeforces Round #750 (Div. 2) A. Luntik and Concerts 思路分析: 首先我们可以肯定的是a,b,c都大于等于1,所以我们先让它们…

    技术杂谈 2023年7月24日
    052
  • MySql主要性能指标说明

    在项目当中数据库一般都会成为主要的性能与负载瓶颈,那么针对数据库各项性能指标的监控与对应的优化是开发与运维人员需要面对的主要工作,而且这部分的工作会贯穿项目从开发到运行的整个周期里…

    技术杂谈 2023年7月25日
    052
  • 基于openlayers2军事标绘,开源[转]

    1.其实各GIS公司、网络上 都会有提供 军事标绘的功能,如arcgis 的,超图的、mapgis的;但大多数是非开源、且收费的。2.在这里要感谢超图,超图开源了标绘扩展符号库,我…

    技术杂谈 2023年5月31日
    077
  • 猪齿鱼开源四周年庆典,邀您共享精彩瞬间

    520真情相遇,「猪齿鱼」与你相伴, 从此一番过往皆是你! 在这样一个充满爱与温馨的日子里,「猪齿鱼」也迎来了自己四周岁的生日。小伙伴们,让我们一起坐上时光穿梭机,回顾「猪齿鱼」的…

    技术杂谈 2023年7月23日
    074
  • docker 安装mysql5.7

    拉取镜像 docker pull mysql:5.7 准备数据目录 mkdir -p /mall/docker/mysql/conf mkdir -p /mall/docker/m…

    技术杂谈 2023年7月24日
    079
  • 分层架构之DDD分层

    DDD(Domain Driven Design,领域驱动设计)作为一种软件开发方法,它可以帮助我们设计高质量的软件模型。在正确实现的情况下,我们通过DDD完成的设计恰恰就是软件的…

    技术杂谈 2023年5月31日
    085
  • php的isset函数相关问题

    一、总结 如果已经使用unset() 释放了一个变量之后,再通过isset() 判断将返回FALSE。 若使用isset() 测试一个被设置成NULL 的变量,将返回FALSE。 …

    技术杂谈 2023年5月31日
    058
  • [极客大挑战 2019]Secret File

    0x01 寻找做题信息 打开环境,查看源代码,发现可疑链接,/Archive_room.php,action.php打开action.php会发生302跳转,查找302跳转无果,百…

    技术杂谈 2023年7月10日
    072
  • njoj 1251 zlly长了一张包子脸

    njoj 1251 zlly长了一张包子脸 题意: zlly长了一张包子脸。他特别喜欢吃糖果。如今他手头有若干种糖果,每种糖果有个口味值,每种糖果有无数多个。然后娄童鞋也很喜欢吃糖…

    技术杂谈 2023年5月30日
    087
  • 面试手撕并发算法题

    固定打印顺序 使用 wait-notify 实现以下功能:先打印 b,再打印 a 线程t1和t2同时运行,t1中打印 a,t2中打印 b,但 t1 打印得有个前提,就是 t1要在t…

    技术杂谈 2023年6月21日
    064
亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球