已经一年没写前端代码了,手生得很,为了上班划水,三天写了个空当接龙游戏

兼容性

兼容现代浏览器

效果图

在这里插入图片描述

项目结构

free-cell
  css
    free-cell.css
  img
    存放图片素材(图片素材与项目源码已上传至下载资源)
  js
    free-cell.js
  free-cell.html

图片素材命名规则

num-color-type.png
num–数字(1 - 13)
color–颜色(1-红色 2-黑色)
type–类型(1–红心 2-黑桃 3-梅花 4-方块)

free-cell.html

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>空当接龙</title><link rel="stylesheet" type="text/css" href="css/free-cell.css">
</head>
<body><div class="container"><div class="menu"><span id="re-init" class="re-init">重新开始</span></div><div class="top-panel"><div id="top-left-panel" class="top-left-panel"><div class="top-left-cell"><div class="top-cell" data-index="0"></div></div><div class="top-left-cell"><div class="top-cell" data-index="1"></div></div><div class="top-left-cell"><div class="top-cell" data-index="2"></div></div><div class="top-left-cell"><div class="top-cell" data-index="3"></div></div></div><div id="top-right-panel" class="top-right-panel"><div class="top-right-cell"><div class="top-cell"></div></div><div class="top-right-cell"><div class="top-cell"></div></div><div class="top-right-cell"><div class="top-cell"></div></div><div class="top-right-cell"><div class="top-cell"></div></div></div><div class="king-panel"><div class="king pri-king"></div><div class="king sec-king"></div><div class="king sec-king"></div><div class="king pri-king"></div></div></div><div class="splitter"></div><div id="bottom-panel" class="bottom-panel"><div class="bottom-cell bottom-cell-1" data-index="0"></div><div class="bottom-cell bottom-cell-2" data-index="1"></div><div class="bottom-cell bottom-cell-3" data-index="2"></div><div class="bottom-cell bottom-cell-4" data-index="3"></div><div class="bottom-cell bottom-cell-5" data-index="4"></div><div class="bottom-cell bottom-cell-6" data-index="5"></div><div class="bottom-cell bottom-cell-7" data-index="6"></div><div class="bottom-cell bottom-cell-8" data-index="7"></div></div></div>
</body>
<script type="text/javascript" src="js/free-cell.js"></script>
</html>

free-cell.css

.container {margin: auto;width: 1020px;height: 600px;background: #00AA00;overflow-x: hidden;overflow-y: scroll}
.menu {height: 30px;background: #D0CECC;position: relative;z-index: 4;padding-left: 8px;}
.re-init {line-height: 30px;font-size: 16px;cursor: pointer;-webkit-user-select: none;-ms-user-select: none;user-select: none}
.top-panel {position: relative;height: 160px;}
.top-left-panel {position: absolute;top: 0;left: 10px;width: 450px;height: 160px;}
.top-left-cell {float: left;margin: 10px 0 0 10px;height: 140px;width: 100px;background: url("../img/back-face-top.png") no-repeat;background-size: 100% 100%;}
.top-right-panel {position: absolute;top: 0;right: 10px;width: 450px;height: 160px;}
.top-right-cell {float: right;margin: 10px 10px 0 0;height: 140px;width: 100px;background: url("../img/back-face-top.png") no-repeat;background-size: 100% 100%;}
.top-cell {position: relative;top: -26px;left: 0;height: 140px;width: 100px;}
.king-panel {position: absolute;width: 50px;height: 50px;top: 0;bottom: 0;left: 0;right: 0;margin: auto;}
.king {float: left;width: 50%;height: 50%;border: 1px outset #009900;opacity: 0.9;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;}
.pri-king {background: url("../img/pri-king.png") no-repeat center;background-size: cover;}
.sec-king {background: url("../img/sec-king.png") no-repeat center;background-size: cover;}
.splitter {margin: auto;width: 960px;height: 1px;background: #80d079;}
.bottom-panel {position: relative;margin: 10px auto 0 auto;width: 960px;height: 600px;}
.bottom-cell {position: absolute;top: 0;height: 140px;width: 100px;background: url("../img/back-face-bottom.png") no-repeat;background-size: 100% 100%;}
.bottom-cell > .cell-container {margin-top: -26px;}
.bottom-cell-1 {left: 10px;}
.bottom-cell-2 {left: 130px;}
.bottom-cell-3 {left: 250px;}
.bottom-cell-4 {left: 370px;}
.bottom-cell-8 {right: 10px;}
.bottom-cell-7 {right: 130px;}
.bottom-cell-6 {right: 250px;}
.bottom-cell-5 {right: 370px;}.cell-container {position: absolute;top: 26px;left: 0;height: 140px;width: 100px;z-index: 0;}
.cell-body {position: absolute;top: 0;left: 0;height: 140px;width: 100px;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;border: 1px solid #D0CECC;border-radius: 4px;background-size: 100% 100%;background-repeat: no-repeat;z-index: 0;}#cell-1 > .cell-body {background-image: url("../img/1-1-1.png");}
#cell-2 > .cell-body {background-image: url("../img/2-2-2.png");}
#cell-3 > .cell-body {background-image: url("../img/5-1-4.png");}
#cell-4 > .cell-body {background-image: url("../img/6-1-1.png");}
#cell-5 > .cell-body {background-image: url("../img/7-2-3.png");}
#cell-6 > .cell-body {background-image: url("../img/10-2-2.png");}
#cell-7 > .cell-body {background-image: url("../img/12-1-4.png");}
#cell-8 > .cell-body {background-image: url("../img/13-1-1.png");}.layer {position: absolute;top: 26px;left: 0;height: 140px;width: 100px;z-index: 2;display: none;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;border: 2px solid #77cfd0;box-shadow:rgb(11, 234, 235) 0 0 12px inset;}

free-cell.js

(function () {function Cell(num, color, type) {this.num = num;this.color = color;this.type = type;this.dom = (function (window) {var cellContainer = window.document.createElement('div');cellContainer.className = 'cell-container';var cellBody = window.document.createElement('div');cellBody.className = 'cell-body';cellBody.setAttribute('data-num', num);cellBody.setAttribute('data-color', color);cellBody.setAttribute('data-type', type);cellBody.style.cssText = 'background-image: url("img/' + num + '-' + color + '-' + type + '.png");';cellContainer.appendChild(cellBody);return cellContainer;})(window);}var ver = 26;var param = {topLeftCells: [null, null, null, null],topRightCells: [[], [], [], []],bottomCells: [[], [], [], [], [], [], [], []]};var topLeftCellDoms = window.document.querySelectorAll('#top-left-panel .top-cell');var topRightCellDoms = window.document.querySelectorAll('#top-right-panel .top-cell');var bottomCellDoms = window.document.querySelectorAll('#bottom-panel .bottom-cell');var bottomPanel = window.document.querySelector('#bottom-panel');var topLeftPanel = window.document.querySelector('#top-left-panel');var reInitButton = window.document.querySelector('#re-init');var layer = (function (window) {var layer = window.document.createElement('div');layer.className = 'layer';return layer;})(window);reInitButton.addEventListener('click', (function () {var startTime = +new Date();return function (e) {var now = + new Date();if (now - startTime > 1500) {startTime = now;reInit();}}})());init();bottomPanel.addEventListener('dblclick', function (e) {e.preventDefault();var target = e.target;var parent = null;if (target.classList.contains('cell-body')) {parent = target.parentNode;} else if (target.classList.contains('cell-container')) {parent = target;target = parent.childNodes[0];}if (parent == null) {return;}var bottomIndex = getIndexInBottomCellsFirst(parent);if (bottomIndex < 0) {return;}var cell = param.bottomCells[bottomIndex][0];var topRightIndex = getIndexInTopRightCells(cell);if (topRightIndex >= 0) {param.bottomCells[bottomIndex].shift();param.topRightCells[topRightIndex].unshift(cell);topRightCellDoms[topRightIndex].appendChild(cell.dom);if (gameOverOrRun()) {autoMoveToTopRight();}} else {var topLeftIndex = getIndexInNullTopLeftCells();if (topLeftIndex < 0) {return;}param.bottomCells[bottomIndex].shift();param.topLeftCells[topLeftIndex] = cell;topLeftCellDoms[topLeftIndex].appendChild(cell.dom);if (gameOverOrRun()) {autoMoveToTopRight();}}});topLeftPanel.addEventListener('dblclick', function (e) {e.preventDefault();var target = e.target;var parent = null;if (target.classList.contains('cell-body')) {parent = target.parentNode;} else if (target.classList.contains('cell-container')) {parent = target;target = parent.childNodes[0];}if (parent == null) {return;}var topLeftIndex = getIndexInTopLeftCells(parent);if (topLeftIndex < 0) {return;}var cell = param.topLeftCells[topLeftIndex];var topRightIndex = getIndexInTopRightCells(cell);if (topRightIndex >= 0) {param.topLeftCells[topLeftIndex] = null;param.topRightCells[topRightIndex].unshift(cell);topRightCellDoms[topRightIndex].appendChild(cell.dom);autoMoveToTopRight();}});window.document.oncontextmenu = function (e) {return false;};dragEvent(topLeftPanel, (function () {var closest = null, selfTopLeftCell = null, selfTopLeftCellIndex = -1;var topLeftCells = param.topLeftCells;var topLeftCellDomList = topLeftCellDoms, topRightCellDomList = topRightCellDoms;var bottomCellDomsXY = null, topLeftCellDomsXY = null, topRightCellDomsXY = null;return function (parent, target, btnNum, phase, clientX, clientY, eX, eY, dx, dy) {if (btnNum === 0) {if (phase === 'down') {closest = getClosest(parent, 'top-cell');selfTopLeftCellIndex = closest.getAttribute('data-index') - 0;selfTopLeftCell = topLeftCells[selfTopLeftCellIndex];bottomCellDomsXY = getBottomCellDomsXY();topLeftCellDomsXY = getTopLeftOrRightCellDomsXY(topLeftCellDomList);topRightCellDomsXY = getTopLeftOrRightCellDomsXY(topRightCellDomList);} else if (phase === 'move') {closest.style.zIndex = 3;parent.style.left = dx + 'px';parent.style.top = ver + dy + 'px';var indexInTopLeftCells = getIndexInTopCells(eX, eY, topLeftCellDomsXY);if (indexInTopLeftCells > -1) {if (topLeftCells[indexInTopLeftCells] === null) {showLayer(topLeftCellDoms[indexInTopLeftCells]);} else {hideLayer();}} else {var indexInTopRightCells = getIndexInTopCells(eX, eY, topRightCellDomsXY);if (indexInTopRightCells > -1) {if (canDropTopLeftToTopRight(indexInTopRightCells, selfTopLeftCell)) {showLayer(topRightCellDoms[indexInTopRightCells]);} else {hideLayer();}} else {var indexInBottomCells = getIndexInBottomCells(eX, eY, bottomCellDomsXY);if (indexInBottomCells > -1 && canDropToBottom(indexInBottomCells, selfTopLeftCell, 0)) {showLayer(bottomCellDoms[indexInBottomCells], bottomCellDomsXY[indexInBottomCells].height);} else {hideLayer();}}}} else {hideLayer();closest.style.zIndex = 0;parent.style.left = 0 + 'px';parent.style.top = ver + 'px';target.style.zIndex = 0;var indexInTopLeftCells = getIndexInTopCells(eX, eY, topLeftCellDomsXY);if (indexInTopLeftCells > -1) {if (topLeftCells[indexInTopLeftCells] === null) {topLeft2TopLeft(selfTopLeftCellIndex, indexInTopLeftCells);}} else {var indexInTopRightCells = getIndexInTopCells(eX, eY, topRightCellDomsXY);if (indexInTopRightCells > -1) {if (canDropTopLeftToTopRight(indexInTopRightCells, selfTopLeftCell)) {topLeft2TopRight(selfTopLeftCellIndex, indexInTopRightCells);}} else {var indexInBottomCells = getIndexInBottomCells(eX, eY, bottomCellDomsXY);if (indexInBottomCells > -1 && canDropToBottom(indexInBottomCells, selfTopLeftCell, 0)) {topLeft2Bottom(selfTopLeftCellIndex, indexInBottomCells);}}}}}}})());dragEvent(bottomPanel, (function () {var closest = null, selfBottomCell = null, selfBottomCellIndex = -1, inBottomCellIndex = -1;var bottomCells = param.bottomCells, topLeftCells = param.topLeftCells;var topLeftCellDomList = topLeftCellDoms, topRightCellDomList = topRightCellDoms;var bottomCellDomsXY = null, topLeftCellDomsXY = null, topRightCellDomsXY = null;var canMove = false;return function (parent, target, btnNum, phase, clientX, clientY, eX, eY, dx, dy) {if (btnNum === 2) {if (phase === 'down') {target.style.zIndex = 3;} else {target.style.zIndex = 0;}} else if (btnNum === 0) {if (phase === 'down') {closest = getClosest(parent, 'bottom-cell');selfBottomCellIndex = closest.getAttribute('data-index') - 0;selfBottomCell = bottomCells[selfBottomCellIndex];inBottomCellIndex = getInCellIndex(target, selfBottomCell);canMove = canMoveBottomCell(selfBottomCellIndex, inBottomCellIndex);if (!canMove) {target.style.zIndex = 3;return;}bottomCellDomsXY = getBottomCellDomsXY();if (inBottomCellIndex === 0) {topLeftCellDomsXY = getTopLeftOrRightCellDomsXY(topLeftCellDomList);topRightCellDomsXY = getTopLeftOrRightCellDomsXY(topRightCellDomList);}} else if (phase === 'move') {if (!canMove) {return;}closest.style.zIndex = 3;parent.style.left = dx + 'px';parent.style.top = ver + dy + 'px';var indexInBottomCells = getIndexInBottomCells(eX, eY, bottomCellDomsXY);if (indexInBottomCells > -1) {if (indexInBottomCells !== selfBottomCellIndex&& canDropToBottom(indexInBottomCells, selfBottomCell[inBottomCellIndex], inBottomCellIndex)) {showLayer(bottomCellDoms[indexInBottomCells], bottomCellDomsXY[indexInBottomCells].height);} else {hideLayer();}} else if (inBottomCellIndex === 0) {var indexInTopLeftCells = getIndexInTopCells(eX, eY, topLeftCellDomsXY);if (indexInTopLeftCells > -1) {if (topLeftCells[indexInTopLeftCells] === null) {showLayer(topLeftCellDoms[indexInTopLeftCells]);} else {hideLayer();}} else {var indexInTopRightCells = getIndexInTopCells(eX, eY, topRightCellDomsXY);if (indexInTopRightCells > -1 && canDropBottomToTopRight(indexInTopRightCells, selfBottomCell)) {showLayer(topRightCellDoms[indexInTopRightCells]);} else {hideLayer();}}}} else {if (!canMove) {target.style.zIndex = 0;return;}hideLayer();closest.style.zIndex = 0;parent.style.left = 0 + 'px';parent.style.top = ver + 'px';target.style.zIndex = 0;var indexInBottomCells = getIndexInBottomCells(eX, eY, bottomCellDomsXY);if (indexInBottomCells > -1) {if (indexInBottomCells !== selfBottomCellIndex&& canDropToBottom(indexInBottomCells, selfBottomCell[inBottomCellIndex], inBottomCellIndex)) {bottom2Bottom(selfBottomCell, inBottomCellIndex, indexInBottomCells);}} else if (inBottomCellIndex === 0) {var indexInTopLeftCells = getIndexInTopCells(eX, eY, topLeftCellDomsXY);if (indexInTopLeftCells > -1) {if (topLeftCells[indexInTopLeftCells] === null) {bottom2TopLeft(selfBottomCell, indexInTopLeftCells);}} else {var indexInTopRightCells = getIndexInTopCells(eX, eY, topRightCellDomsXY);if (indexInTopRightCells > -1 && canDropBottomToTopRight(indexInTopRightCells, selfBottomCell)) {bottom2TopRight(selfBottomCell, indexInTopRightCells);}}}}}}})());function showLayer(parent, height) {parent.appendChild(layer);if (height) {layer.style.top = '0px';layer.style.height = height + 'px';} else {layer.style.top = ver + 'px';layer.style.height = '140px';}layer.style.display = 'block';}function hideLayer() {layer.style.display = 'none';}function gameOverOrRun() {if (isSuccess()) {window.setTimeout(function () {alert("恭喜,游戏成功了");});} else if (isFail()) {window.setTimeout(function () {alert("已无牌可移动了");});}return true;}function isSuccess() {var topRightCells = param.topRightCells;for (var i = 0; i < topRightCells.length; i++) {if (topRightCells[i].length < 13) {return false;}}return true;}function isFail() {var topLeftCells = param.topLeftCells, topRightCells = param.topRightCells, bottomCells = param.bottomCells;var topLeft = [], topRight = [], bottom = [];for (var i = 0; i < topLeftCells.length; i++) {if (topLeftCells[i] === null || topLeftCells[i].num === 1) {return false;}topLeft.push(topLeftCells[i]);}for (var i = 0; i < bottomCells.length; i++) {if (bottomCells[i].length === 0 || bottomCells[i][0].num === 1) {return false;}bottom.push(bottomCells[i][0]);}for (var i = 0; i < topRightCells.length; i++) {if (topRightCells[i].length > 0) {topRight.push(topRightCells[i][0]);}}for (var i = 0; i < topLeft.length; i++) {for (var j = 0; j < topRight.length; j++) {if (topLeft[i].num === topRight[j].num + 1 && topLeft[i].type === topRight[j].type) {return false;}}for (var j = 0; j < bottom; j++) {if (topLeft[i].num === bottom[j].num + 1 && topLeft[i].color !== bottom[j].color) {return false;}}}for (var i = 0; i < bottom.length; i++) {for (var j = 0; j < topRight.length; j++) {if (bottom[i].num === topRight[j].num + 1 && bottom[i].type === topRight[j].type) {return false;}}for (var j = 0; j < bottom.length; j++) {if (bottom[i].num === bottom[j].num + 1 && bottom[i].color !== bottom[j].color) {return false;}}}return true;}function autoMoveToTopRight() {var autoMove = false;(function timeoutMoveToTopRight() {window.setTimeout(function () {autoMove = moveOneToTopRight();if (autoMove) {timeoutMoveToTopRight();}}, 200);})();}function moveOneToTopRight() {var topLeftCells = param.topLeftCells, topRightCells = param.topRightCells, bottomCells = param.bottomCells;var one = getOneCanMoveTopRight();if (one === null) {return false;}var indexInTopRightCells = -1;if (one.position === 'topLeft') {var cell = topLeftCells[one.index];if (cell.num === 1) {for (var i = topRightCells.length - 1; i >= 0; i--) {if (topRightCells[i].length === 0) {indexInTopRightCells = i;break;}}} else {for (var i = 0; i < topRightCells.length; i++) {if (topRightCells[i][0].num + 1 === cell.num && topRightCells[i][0].type === cell.type) {indexInTopRightCells = i;break;}}}topLeft2TopRight(one.index, indexInTopRightCells);} else {var cells = bottomCells[one.index];if (cells[0].num === 1) {for (var i = topRightCells.length - 1; i >= 0; i--) {if (topRightCells[i].length === 0) {indexInTopRightCells = i;break;}}} else {for (var i = 0; i < topRightCells.length; i++) {if (topRightCells[i][0].num + 1 === cells[0].num && topRightCells[i][0].type === cells[0].type) {indexInTopRightCells = i;break;}}}bottom2TopRight(cells, indexInTopRightCells);}return true;}function getOneCanMoveTopRight() {var topLeftCells = param.topLeftCells, topRightCells = param.topRightCells, bottomCells = param.bottomCells;var num = 13;for (var i = 0; i < topRightCells.length; i++) {if (topRightCells[i].length === 0) {num = 1;break;}var tmpNum = topRightCells[i][0].num;if (tmpNum < num) {num = tmpNum + 1;}}for (var i = 0; i < topLeftCells.length; i++) {if (topLeftCells[i] !== null && topLeftCells[i].num === num) {return {position: 'topLeft',index: i};}}for (var i = 0; i < bottomCells.length; i++) {if (bottomCells[i].length > 0 && bottomCells[i][0].num === num) {return {position: 'bottom',index: i}}}return null;}function canMoveBottomCount() {var topLeftCells = param.topLeftCells, bottomCells = param.bottomCells;var count = 1;for (var i = 0; i < topLeftCells.length; i++) {if (topLeftCells[i] === null) {count++;}}for (var i = 0; i < bottomCells.length; i++) {if (bottomCells[i].length === 0) {count++;}}return count;}function canMoveBottomCell(selfBottomCellIndex, inBottomCellIndex) {var bottomCellArr = param.bottomCells[selfBottomCellIndex];var cell = bottomCellArr[inBottomCellIndex];for (var i = inBottomCellIndex - 1; i >= 0; i--) {if (bottomCellArr[i].num + 1 !== cell.num || bottomCellArr[i].color === cell.color) {return false;}cell = bottomCellArr[i];}return true;}function canDropTopLeftToTopRight(indexInTopRightCells, selfTopLeftCell) {var topRightCell = param.topRightCells[indexInTopRightCells];return topRightCell.length === 0 ? selfTopLeftCell.num === 1: selfTopLeftCell.num === topRightCell[0].num + 1 && selfTopLeftCell.type === topRightCell[0].type;}function canDropBottomToTopRight(indexInTopRightCells, selfBottomCell) {var topRightCell = param.topRightCells[indexInTopRightCells];return topRightCell.length === 0 ? selfBottomCell[0].num === 1: selfBottomCell[0].num === topRightCell[0].num + 1 && selfBottomCell[0].type === topRightCell[0].type;}function canDropToBottom(indexInBottomCells, selfCell, inBottomCellIndex) {var bottomCell = param.bottomCells[indexInBottomCells];if (inBottomCellIndex > 0) {var count = canMoveBottomCount();if (bottomCell.length === 0 ? inBottomCellIndex + 1 >= count : inBottomCellIndex >= count) {return false;}}return bottomCell.length === 0|| selfCell.num - 0 + 1 === bottomCell[0].num && selfCell.color - 0 !== bottomCell[0].color;}function topLeft2TopLeft(selfTopLeftCellIndex, indexInTopLeftCells) {var topLeftCells = param.topLeftCells;var topLeftCellDomList = topLeftCellDoms;var cell = topLeftCells[selfTopLeftCellIndex];topLeftCells[selfTopLeftCellIndex] = null;topLeftCellDomList[indexInTopLeftCells].appendChild(cell.dom);topLeftCells[indexInTopLeftCells] = cell;}function topLeft2TopRight(selfTopLeftCellIndex, indexInTopRightCells) {var topLeftCells = param.topLeftCells, topRightCells = param.topRightCells;var topRightCellDomList = topRightCellDoms;var cell = topLeftCells[selfTopLeftCellIndex];topLeftCells[selfTopLeftCellIndex] = null;if (topRightCells[indexInTopRightCells].length > 0) {topRightCells[indexInTopRightCells][0].dom.appendChild(cell.dom);cell.dom.style.top = 0;} else {topRightCellDomList[indexInTopRightCells].appendChild(cell.dom);}topRightCells[indexInTopRightCells].unshift(cell);}function topLeft2Bottom(selfTopLeftCellIndex, indexInBottomCells) {var topLeftCells = param.topLeftCells, bottomCells = param.bottomCells;var bottomCellDomList = bottomCellDoms;var cell = topLeftCells[selfTopLeftCellIndex];topLeftCells[selfTopLeftCellIndex] = null;if (bottomCells[indexInBottomCells].length > 0) {bottomCells[indexInBottomCells][0].dom.appendChild(cell.dom);} else {bottomCellDomList[indexInBottomCells].appendChild(cell.dom);}bottomCells[indexInBottomCells].unshift(cell);}function bottom2TopLeft(selfBottomCell, indexInTopLeftCells) {var topLeftCells = param.topLeftCells;var topLeftCellDomList = topLeftCellDoms;var cell = selfBottomCell.shift();topLeftCellDomList[indexInTopLeftCells].appendChild(cell.dom);topLeftCells[indexInTopLeftCells] = cell;gameOverOrRun();}function bottom2TopRight(selfBottomCell, indexInTopRightCells) {var topRightCells = param.topRightCells;var topRightCellDomList = topRightCellDoms;var cell = selfBottomCell.shift();if (topRightCells[indexInTopRightCells].length > 0) {topRightCells[indexInTopRightCells][0].dom.appendChild(cell.dom);cell.dom.style.top = 0;} else {topRightCellDomList[indexInTopRightCells].appendChild(cell.dom);}topRightCells[indexInTopRightCells].unshift(cell);gameOverOrRun();}function bottom2Bottom(selfBottomCell, inBottomCellIndex, indexInBottomCells) {var bottomCells = param.bottomCells;var bottomCellDomList = bottomCellDoms;var cells = selfBottomCell.splice(0, inBottomCellIndex + 1);if (bottomCells[indexInBottomCells].length > 0) {bottomCells[indexInBottomCells][0].dom.appendChild(cells[cells.length - 1].dom);} else {bottomCellDomList[indexInBottomCells].appendChild(cells[cells.length - 1].dom);}var targetCell = bottomCells[indexInBottomCells];for (var i = cells.length - 1; i >= 0; i--) {targetCell.unshift(cells[i]);}gameOverOrRun();}function getBottomCellDomsXY() {var width = 100, minHeight = 140;var bottomCellDomList = bottomCellDoms, bottomCells = param.bottomCells;var bottomCellDomsXY = [];var point = null;for (var i = 0; i < bottomCellDomList.length; i++) {point = getAbsPoint(bottomCellDomList[i]);point.width = width;point.height = (function (i) {var length = bottomCells[i].length;if (length < 2) {return minHeight;} else {return minHeight + (length - 1) * ver;}})(i);bottomCellDomsXY.push(point);}return bottomCellDomsXY;}function getTopLeftOrRightCellDomsXY(topLeftOrRightCellDoms) {var width = 100, height = 140;var topCellDomsXY = [];var point = null;for (var i = 0; i < topLeftOrRightCellDoms.length; i++) {point = getAbsPoint(topLeftOrRightCellDoms[i]);point.width = width;point.height = height;topCellDomsXY.push(point);}return topCellDomsXY;}function getInCellIndex(target, selfCell) {var num = target.getAttribute("data-num") - 0;var type = target.getAttribute('data-type') - 0;for (var i = 0; i < selfCell.length; i++) {if (selfCell[i].num === num && selfCell[i].type === type) {return i}}return -1;}function getIndexInTopCells(eX, eY, cellDomsXY) {for (var i = 0; i < cellDomsXY.length; i++) {if (eX >= cellDomsXY[i].x&& eX <= cellDomsXY[i].x + cellDomsXY[i].width&& eY >= cellDomsXY[i].y + ver&& eY <= cellDomsXY[i].y + cellDomsXY[i].height + ver) {return i;}}return -1;}function getIndexInBottomCells(eX, eY, cellDomsXY) {for (var i = 0; i < cellDomsXY.length; i++) {if (eX >= cellDomsXY[i].x&& eX <= cellDomsXY[i].x + cellDomsXY[i].width&& eY >= cellDomsXY[i].y&& eY <= cellDomsXY[i].y + cellDomsXY[i].height) {return i;}}return -1;}function getClosest(target, clazz) {var parent = target;for(;;) {parent = parent.parentNode;if (parent === null) {return null;} else if (parent.classList.contains(clazz)) {return parent;}}}function getIndexInNullTopLeftCells() {var topLeftCells = param.topLeftCells;for (var i = 0; i < topLeftCells.length; i++) {if (topLeftCells[i] === null) {return i;}}return -1;}function getIndexInTopLeftCells(dom) {var topLeftCells = param.topLeftCells;for (var i = 0; i < topLeftCells.length; i++) {if (topLeftCells[i] !== null && dom === topLeftCells[i].dom) {return i;}}return -1;}function getIndexInTopRightCells(cell) {var topRightCells = param.topRightCells;if (cell.num === 1) {for (var i = topRightCells.length - 1; i >= 0; i--) {if (topRightCells[i].length === 0) {return i;}}return -1;} else {for (var i = 0; i < topRightCells.length; i++) {if (topRightCells[i].length > 0) {var topRightCell = topRightCells[i][0];if (topRightCell.num + 1 === cell.num && topRightCell.type === cell.type) {return i;}}}return -1;}}function getIndexInBottomCellsFirst(dom) {var bottomCells = param.bottomCells;for (var i = 0; i < bottomCells.length; i++) {if (bottomCells[i].length > 0 && dom === bottomCells[i][0].dom) {return i;}}return -1;}function reInit() {var topLeftCells = param.topLeftCells, topRightCells = param.topRightCells, bottomCells = param.bottomCells;var topLeftCellDomList = topLeftCellDoms, topRightCellDomList = topRightCellDoms, bottomCellDomList = bottomCellDoms;for (var i = 0; i < topLeftCells.length; i++) {topLeftCells[i] = null;topLeftCellDomList[i].innerHTML = '';}for (var i = 0; i < topRightCells.length; i++) {topRightCells[i].length = 0;topRightCellDomList[i].innerHTML = '';}for (var i = 0; i < bottomCells.length; i++) {bottomCells[i].length = 0;bottomCellDomList[i].innerHTML = '';}init();}function init() {var initArr = [];var num, type, color;var random;for (var i = 0; i < 52; i++) {num = ~~(i / 4) + 1;type = i % 4 + 1;color = (type === 1 || type === 4) ? 1 : 2;random = ~~(Math.random() * initArr.length);initArr.splice(random, 0, new Cell(num, color, type));}var bottomCells = param.bottomCells;appendTimeout(bottomCells, initArr, 0);}function appendTimeout(bottomCells, initArr, i) {window.setTimeout(function () {if (i > initArr.length - 1) {return;}appendBottom(bottomCells[i % 8], bottomCellDoms[i % 8], initArr[i]);appendTimeout(bottomCells, initArr, i + 1);}, 25);}function appendBottom(bottomCell, bottomCellDom, cell) {if (bottomCell.length === 0) {bottomCellDom.appendChild(cell.dom);} else {bottomCell[0].dom.appendChild(cell.dom);}bottomCell.unshift(cell);}function dragEvent(dom, func) {var disX = 0,disY = 0, clientX = 0, clientY = 0, dx = 0, dy = 0;var el = dom.setCapture ? dom : document;var docElem, win,elem = dom,doc = elem && elem.ownerDocument;if ( !doc ) {return;}docElem = doc.documentElement;win = getWindow( doc );dom.onmousedown = function (ev) {dom.focus();var oEvent = ev || window.event, target = oEvent.target, btnNum = oEvent.button;var parent = null;if (target.classList.contains('cell-body')) {parent = target.parentNode;} else if (target.classList.contains('cell-container')) {parent = target;target = parent.childNodes[0];}if (parent == null) {return false;}var xOffset = ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 );var yOffset = ( win.pageYOffset || docElem.scrollTop )  - ( docElem.clientTop  || 0 );disX = dx = oEvent.offsetX || oEvent.layerX || 0; disY = dy = oEvent.offsetY || oEvent.layerY || 0;clientX = oEvent.clientX; clientY = oEvent.clientY;var timeoutFunc = function (phase, oEvent) {func(parent, target, btnNum, phase, clientX + xOffset, clientY + yOffset,oEvent.clientX + xOffset, oEvent.clientY + yOffset, oEvent.clientX - clientX, oEvent.clientY - clientY);};timeoutFunc('down', oEvent);if (btnNum !== 2) {el.onmousemove = function (ev) {var oEvent = ev || window.event;if(oEvent.stopPropagation) {oEvent.stopPropagation();} else {oEvent.cancelBubble = true;}dx = disX + oEvent.clientX - clientX;  dy = disY + oEvent.clientY - clientY;if (dx < 0) {dx = 0} else if (dx > dom.offsetWidth - 1) {dx = dom.offsetWidth - 1}if (dy < 0) {dy = 0} else if (dy > dom.offsetHeight - 1) {dy = dom.offsetHeight - 1}timeoutFunc('move', oEvent);return false;};}el.onmouseup = function (ev) {var oEvent = ev || window.event;if(oEvent.stopPropagation) {oEvent.stopPropagation();} else {oEvent.cancelBubble = true;}timeoutFunc('up', oEvent);el.onmousemove = null; el.onmouseup = null; if(dom.releaseCapture) {dom.releaseCapture();}};if(dom.setCapture) {dom.setCapture();}return false;};}function isWindow ( obj ) {return obj != null && obj == obj.window;}function getWindow( elem ) {return isWindow( elem ) ?elem :elem.nodeType === 9 ?elem.defaultView || elem.parentWindow :false;}function getAbsPoint (el){var docElem, win,box = { top: 0, left: 0 },elem = el,doc = elem && elem.ownerDocument;if ( !doc ) {return;}docElem = doc.documentElement;if ( typeof elem.getBoundingClientRect !== typeof undefined ) {box = elem.getBoundingClientRect();}win = getWindow( doc );return {x: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 ),y: box.top  + ( win.pageYOffset || docElem.scrollTop )  - ( docElem.clientTop  || 0 )};}
})();
查看全文
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

相关文章

  1. vue3使用vue-quill实现富文本编辑器上传图片

    最近开发的一个vue3element-plus的项目&#xff0c;需要用到富文本编辑器&#xff0c;最终选择了VueQuill这一款轻便型的富文本编辑器&#xff1a;官网地址为 https://vueup.github.io/vue-quill/guide/installation.html 首先&#xff0c;我们把它install下来&#xff0c;执行…...

    2024/4/27 16:01:12
  2. Web源代码搭建 短信平台系统 路由全网通道架构 特色模块后台管理系统支持简单介绍

    特色模块 系统根据需要开发了专业版本的功能&#xff0c;主要特色功能是&#xff1a; 1&#xff1a;通道路由模块 1.1&#xff1a;通道地区设置 1.2&#xff1a;通道关键词分流 1.3&#xff1a;白名单独立通道设置 1.4&#xff1a;通道分组设置 1.5&#xff1a;…...

    2024/4/6 10:51:42
  3. 用于跑深度学习的嵌入式硬件平台资料整理

    本来想温习下数电&#xff0c;模电&#xff0c;单片机&#xff0c;电路设计&#xff0c;外围配套端口和设备方面的知识&#xff0c;往底层硬件方面去&#xff0c;鉴于精力有限&#xff0c;初衷点是想把算法和硬件相结合&#xff0c;考虑到这些年主要是算法方面&#xff08;图像…...

    2024/4/27 14:46:24
  4. go并发编程

    Mutex 简介 互斥锁&#xff0c;限制临界区同时只能由一个线程持有Mutex实现了Locker接口&#xff0c;对外提供两个接口&#xff0c;加锁用 Lock(), 退出加锁用 UnLock()Mutex不用初始化&#xff0c;直接声明就可以使用Mutex一般可以单独使用&#xff0c;也可以嵌入其他结构中…...

    2024/4/27 19:12:50
  5. 前端二面题

    TC前端二面 一、选择题 1、在 c s s 选择器当中&#xff0c;优先级排序正确的是&#xff08;&#xff09; A、id选择器>标签选择器>类选择器B、标签选择器>类选择器>id选择器C、类选择器>标签选择器>id选择器D、id选择器>类选择器>标签选择器2、关于…...

    2024/4/27 18:11:37
  6. Kotlin学习笔记——(一)变量、语句和函数

    注&#xff1a;编码工具为IntelliJ 为什么要学习Kotlin&#xff1f; 我本身是Android开发工程师&#xff0c;Kotlin被Google宣布为Android第一开发语言&#xff0c;主要是为了避免诉讼问题&#xff0c;Oracle近年来因为Android未经授权使用JavaAPI对Google提起了多场诉讼&…...

    2024/4/27 16:57:38
  7. Python知识训练-序列结构

    已知x [1,2,3]&#xff0c;执行语句x.append(4)之后&#xff0c;x的值是&#xff08;&#xff09; A、[1,2,3,4] B、[4] C、[1,2,3] D、4 A 【append()用于向列表尾部追加一个元素 】 已知x [1, 2, 3, 4, 5, 6, 7]&#xff0c;那么x.pop()的结果是( ) A、1 B、4 C、7…...

    2024/4/27 14:39:37
  8. C 语言_第五章.动态内存申请

    第五章 动态内存申请 5.1 静态分配和动态分配 5.1.1 静态分配 在程序编译或运行过程中&#xff0c;按事先规定大小分配内存空间的分配方式&#xff1b;必须事先知道所需空间的大小&#xff1b;分配在栈区或全局变量区&#xff0c;一般以数组的形式&#xff1b;按计划分配。 …...

    2024/4/27 14:58:59
  9. T31训练营 DAY5

    谈谈数据访问层框架(2) 本文延续上一篇文章&#xff0c;继续谈谈常见的Java数据访问层框架的优缺点。 tkMybatis 优点&#xff1a;对MyBatis Generator插件生成单表模板的进一步封装&#xff0c;解决了每次改动数据表结构后的手工同步工作&#xff0c;单表操作几乎无需写额外…...

    2024/4/27 17:43:29
  10. IDEA快捷键汇总

    IDEA快捷键汇总 Ctrl快捷键 Ctrl F 在当前文件进行文本查找 &#xff08;必备&#xff09;Ctrl R 在当前文件进行文本替换 &#xff08;必备&#xff09;Ctrl Z 撤销 &#xff08;必备&#xff09;Ctrl Y 删除光标所在行 或 删除选中的行 &#xff08;必备&#xff09;Ct…...

    2024/4/27 19:01:17
  11. 学习总结(2021.10.25笔记)

    2021.10.25&#xff1a; 抛开上课废话&#xff0c;我所接触的第一个知识就是“何为网络”&#xff1f;网络是有网络连接设备通过传输介质将网络终端设备连接起来进行数据的交换和共享的平台。 进入主题&#xff0c;我们先讲了 OSI七层参考模型&#xff08;开放式系统互联模型…...

    2024/4/27 13:28:33
  12. 深入浅出LLVM

    深入浅出LLVM 转自&#xff1a;https://www.jianshu.com/p/1367dad95445 什么是LLVM&#xff1f; LLVM项目是模块化、可重用的编译器以及工具链技术的集合。 美国计算机协会 (ACM) 将其2012 年软件系统奖项颁给了LLVM&#xff0c;之前曾经获得此奖项的软件和技术包括:Java、A…...

    2024/4/27 17:15:24
  13. IDA使用手册_(1)

    1.快捷方式 ShiftF12: 快速查看so文件中的字符串信息&#xff0c;分析过程中通过一些关键字符串能够迅速定位到关键函数&#xff1b; F5: 可以将ARM指令转化为可读的C代码&#xff0c;同时可以使用Y键&#xff0c;对JNIEnv指针做一个类型转换&#xff0c;从而对JNI里经常使用…...

    2024/4/27 19:46:44
  14. CSS3绘制方格背景图类似于ProcessOn 绘制面板

    效果图&#xff1a; <div class"canvas">中心画布</div>.canvas {border: 1px solid #f2f2f2;background: -webkit-linear-gradient(top,transparent 15px,#f2f2f2 15px,#f2f2f2 16px,transparent 16px,transparent 31px,#f2f2f2 31px,#f2f2f2 32px,tran…...

    2024/4/27 16:06:01
  15. FindClass和RegisterNatives是什么函数

    FindClass 和 RegisterNatives 是什么函数?有什么作用? 作用:动态注册JNI函数 作为对比的就是静态注册了 下次遇到了再说 JNI_OnLoad方法和RegisterNatives方法的结合可以做到更佳方便的注册你的jni方法。 传统的注册JNI方法需要 完整的结构是Java_classpath_classname_na…...

    2024/4/27 16:15:22
  16. BUUCTF刷题4

    题目&#xff1a;hitcon2014_stkof&#xff1a;pwnable_hacknote&#xff1a;ciscn_2019_s_9:picoctf_2018_shellcode&#xff1a;npuctf_2020_easyheap&#xff1a;cmcc_pwnme2&#xff1a;x_ctf_b0verfl0w&#xff1a;picoctf_2018_leak_me:suctf_2018_basic pwn&#xff1a;…...

    2024/4/27 16:38:26
  17. 【算法-LeetCode】7. 整数反转(字符串;数组;取余)

    7. 整数反转 - 力扣&#xff08;LeetCode&#xff09; 文章起笔&#xff1a;2021年10月30日17:34:29 问题描述及示例 给你一个 32 位的有符号整数 x &#xff0c;返回将 x 中的数字部分反转后的结果。 如果反转后整数超过 32 位的有符号整数的范围 [−231, 231 − 1] &#x…...

    2024/4/27 17:16:28
  18. 推荐系统简介——基于协同过滤的推荐

    1、推荐系统简介个性化推荐是根据用户的兴趣特点和购买行为,向用户推荐用户感兴趣的信息和商品。推荐系统主要处理的有两类内容:一个是User,一个是Item。系统的目标也很明确,就是向User推荐Item。应用了推荐系统的例子有很多,比如:知名的电商:Amazon,全球有名的在线影片…...

    2024/4/27 15:56:40
  19. 孤尽T31项目第3天笔记-Mysql设计规约

    ...

    2024/4/15 18:31:23
  20. IDA_操作快捷键

    空格键 &#xff1a;反汇编窗口切换文本跟图形 ESC退到上一个操作地址 G搜索地址或者符号 N重命名 分号键 &#xff1a;注释 ALTM 添加标签 CTRLM 列出所有标签 CTRL S 二进制段的开始地址结束地址 选择区段 C code 光标地址出内容解析成代码 P 在函数开始处使用P&#xff0c;从…...

    2024/4/15 18:31:08

最新文章

  1. 必应bing国内广告开户注册教程!

    今天搜索引擎广告成为企业推广产品与服务、提升品牌知名度的重要渠道之一。作为全球第二大搜索引擎&#xff0c;必应Bing凭借其高质量的用户群体和广泛的国际覆盖&#xff0c;为广告主提供了独特的市场机遇。在中国&#xff0c;虽然必应的市场份额相对较小&#xff0c;但对于寻…...

    2024/4/27 20:14:14
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言&#xff0c;在此感激不尽。 权重和梯度的更新公式如下&#xff1a; w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/3/20 10:50:27
  3. springboot websocket 持续打印 pod 日志

    springboot 整合 websocket 和 连接 k8s 集群的方式参考历史 Java 专栏文章 修改前端页面 <!DOCTYPE html> <html><head><meta charset"utf-8"><title>Java后端WebSocket的Tomcat实现</title><script type"text/javasc…...

    2024/4/27 12:27:38
  4. 北航2023年考研机试题

    【问题描述】一共6个手机基站&#xff0c;具有记录手机连接基站的能力&#xff0c;6个手机基站分别为ABCDEF&#xff0c;他们具有自己的覆盖范围且任何两个基站的覆盖范围不想交&#xff0c;基站保存的手机登陆日志包括手机号&#xff08;11位&#xff0c;用字符串保存&#xf…...

    2024/4/23 6:26:10
  5. 论文阅读AI工具链

    文献检索 可以利用智谱清言来生成合适的文献检索式&#xff0c;并根据需要不断调整。 谷歌学术 在Google Scholar中进行检索时&#xff0c;您可以使用类似的逻辑来构建您的搜索式&#xff0c;但是语法会有所不同。Google Scholar的搜索框接受普通的文本搜索&#xff0c;但是…...

    2024/4/23 6:25:51
  6. 【外汇早评】美通胀数据走低,美元调整

    原标题:【外汇早评】美通胀数据走低,美元调整昨日美国方面公布了新一期的核心PCE物价指数数据,同比增长1.6%,低于前值和预期值的1.7%,距离美联储的通胀目标2%继续走低,通胀压力较低,且此前美国一季度GDP初值中的消费部分下滑明显,因此市场对美联储后续更可能降息的政策…...

    2024/4/26 18:09:39
  7. 【原油贵金属周评】原油多头拥挤,价格调整

    原标题:【原油贵金属周评】原油多头拥挤,价格调整本周国际劳动节,我们喜迎四天假期,但是整个金融市场确实流动性充沛,大事频发,各个商品波动剧烈。美国方面,在本周四凌晨公布5月份的利率决议和新闻发布会,维持联邦基金利率在2.25%-2.50%不变,符合市场预期。同时美联储…...

    2024/4/26 20:12:18
  8. 【外汇周评】靓丽非农不及疲软通胀影响

    原标题:【外汇周评】靓丽非农不及疲软通胀影响在刚结束的周五,美国方面公布了新一期的非农就业数据,大幅好于前值和预期,新增就业重新回到20万以上。具体数据: 美国4月非农就业人口变动 26.3万人,预期 19万人,前值 19.6万人。 美国4月失业率 3.6%,预期 3.8%,前值 3…...

    2024/4/26 23:05:52
  9. 【原油贵金属早评】库存继续增加,油价收跌

    原标题:【原油贵金属早评】库存继续增加,油价收跌周三清晨公布美国当周API原油库存数据,上周原油库存增加281万桶至4.692亿桶,增幅超过预期的74.4万桶。且有消息人士称,沙特阿美据悉将于6月向亚洲炼油厂额外出售更多原油,印度炼油商预计将每日获得至多20万桶的额外原油供…...

    2024/4/27 4:00:35
  10. 【外汇早评】日本央行会议纪要不改日元强势

    原标题:【外汇早评】日本央行会议纪要不改日元强势近两日日元大幅走强与近期市场风险情绪上升,避险资金回流日元有关,也与前一段时间的美日贸易谈判给日本缓冲期,日本方面对汇率问题也避免继续贬值有关。虽然今日早间日本央行公布的利率会议纪要仍然是支持宽松政策,但这符…...

    2024/4/27 17:58:04
  11. 【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响

    原标题:【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响近日伊朗局势升温,导致市场担忧影响原油供给,油价试图反弹。此时OPEC表态稳定市场。据消息人士透露,沙特6月石油出口料将低于700万桶/日,沙特已经收到石油消费国提出的6月份扩大出口的“适度要求”,沙特将满…...

    2024/4/27 14:22:49
  12. 【外汇早评】美欲与伊朗重谈协议

    原标题:【外汇早评】美欲与伊朗重谈协议美国对伊朗的制裁遭到伊朗的抗议,昨日伊朗方面提出将部分退出伊核协议。而此行为又遭到欧洲方面对伊朗的谴责和警告,伊朗外长昨日回应称,欧洲国家履行它们的义务,伊核协议就能保证存续。据传闻伊朗的导弹已经对准了以色列和美国的航…...

    2024/4/26 21:56:58
  13. 【原油贵金属早评】波动率飙升,市场情绪动荡

    原标题:【原油贵金属早评】波动率飙升,市场情绪动荡因中美贸易谈判不安情绪影响,金融市场各资产品种出现明显的波动。随着美国与中方开启第十一轮谈判之际,美国按照既定计划向中国2000亿商品征收25%的关税,市场情绪有所平复,已经开始接受这一事实。虽然波动率-恐慌指数VI…...

    2024/4/27 9:01:45
  14. 【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试

    原标题:【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试美国和伊朗的局势继续升温,市场风险情绪上升,避险黄金有向上突破阻力的迹象。原油方面稍显平稳,近期美国和OPEC加大供给及市场需求回落的影响,伊朗局势并未推升油价走强。近期中美贸易谈判摩擦再度升级,美国对中…...

    2024/4/27 17:59:30
  15. 【原油贵金属早评】市场情绪继续恶化,黄金上破

    原标题:【原油贵金属早评】市场情绪继续恶化,黄金上破周初中国针对于美国加征关税的进行的反制措施引发市场情绪的大幅波动,人民币汇率出现大幅的贬值动能,金融市场受到非常明显的冲击。尤其是波动率起来之后,对于股市的表现尤其不安。隔夜美国股市出现明显的下行走势,这…...

    2024/4/25 18:39:16
  16. 【外汇早评】美伊僵持,风险情绪继续升温

    原标题:【外汇早评】美伊僵持,风险情绪继续升温昨日沙特两艘油轮再次发生爆炸事件,导致波斯湾局势进一步恶化,市场担忧美伊可能会出现摩擦生火,避险品种获得支撑,黄金和日元大幅走强。美指受中美贸易问题影响而在低位震荡。继5月12日,四艘商船在阿联酋领海附近的阿曼湾、…...

    2024/4/25 18:39:16
  17. 【原油贵金属早评】贸易冲突导致需求低迷,油价弱势

    原标题:【原油贵金属早评】贸易冲突导致需求低迷,油价弱势近日虽然伊朗局势升温,中东地区几起油船被袭击事件影响,但油价并未走高,而是出于调整结构中。由于市场预期局势失控的可能性较低,而中美贸易问题导致的全球经济衰退风险更大,需求会持续低迷,因此油价调整压力较…...

    2024/4/26 19:03:37
  18. 氧生福地 玩美北湖(上)——为时光守候两千年

    原标题:氧生福地 玩美北湖(上)——为时光守候两千年一次说走就走的旅行,只有一张高铁票的距离~ 所以,湖南郴州,我来了~ 从广州南站出发,一个半小时就到达郴州西站了。在动车上,同时改票的南风兄和我居然被分到了一个车厢,所以一路非常愉快地聊了过来。 挺好,最起…...

    2024/4/26 22:01:59
  19. 氧生福地 玩美北湖(中)——永春梯田里的美与鲜

    原标题:氧生福地 玩美北湖(中)——永春梯田里的美与鲜一觉醒来,因为大家太爱“美”照,在柳毅山庄去寻找龙女而错过了早餐时间。近十点,向导坏坏还是带着饥肠辘辘的我们去吃郴州最富有盛名的“鱼头粉”。说这是“十二分推荐”,到郴州必吃的美食之一。 哇塞!那个味美香甜…...

    2024/4/25 18:39:14
  20. 氧生福地 玩美北湖(下)——奔跑吧骚年!

    原标题:氧生福地 玩美北湖(下)——奔跑吧骚年!让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 啊……啊……啊 两…...

    2024/4/26 23:04:58
  21. 扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!

    原标题:扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!扒开伪装医用面膜,翻六倍价格宰客!当行业里的某一品项火爆了,就会有很多商家蹭热度,装逼忽悠,最近火爆朋友圈的医用面膜,被沾上了污点,到底怎么回事呢? “比普通面膜安全、效果好!痘痘、痘印、敏感肌都能用…...

    2024/4/25 2:10:52
  22. 「发现」铁皮石斛仙草之神奇功效用于医用面膜

    原标题:「发现」铁皮石斛仙草之神奇功效用于医用面膜丽彦妆铁皮石斛医用面膜|石斛多糖无菌修护补水贴19大优势: 1、铁皮石斛:自唐宋以来,一直被列为皇室贡品,铁皮石斛生于海拔1600米的悬崖峭壁之上,繁殖力差,产量极低,所以古代仅供皇室、贵族享用 2、铁皮石斛自古民间…...

    2024/4/25 18:39:00
  23. 丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者

    原标题:丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者【公司简介】 广州华彬企业隶属香港华彬集团有限公司,专注美业21年,其旗下品牌: 「圣茵美」私密荷尔蒙抗衰,产后修复 「圣仪轩」私密荷尔蒙抗衰,产后修复 「花茵莳」私密荷尔蒙抗衰,产后修复 「丽彦妆」专注医学护…...

    2024/4/26 19:46:12
  24. 广州械字号面膜生产厂家OEM/ODM4项须知!

    原标题:广州械字号面膜生产厂家OEM/ODM4项须知!广州械字号面膜生产厂家OEM/ODM流程及注意事项解读: 械字号医用面膜,其实在我国并没有严格的定义,通常我们说的医美面膜指的应该是一种「医用敷料」,也就是说,医用面膜其实算作「医疗器械」的一种,又称「医用冷敷贴」。 …...

    2024/4/27 11:43:08
  25. 械字号医用眼膜缓解用眼过度到底有无作用?

    原标题:械字号医用眼膜缓解用眼过度到底有无作用?医用眼膜/械字号眼膜/医用冷敷眼贴 凝胶层为亲水高分子材料,含70%以上的水分。体表皮肤温度传导到本产品的凝胶层,热量被凝胶内水分子吸收,通过水分的蒸发带走大量的热量,可迅速地降低体表皮肤局部温度,减轻局部皮肤的灼…...

    2024/4/27 8:32:30
  26. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下&#xff1a;1、长按电脑电源键直至关机&#xff0c;然后再按一次电源健重启电脑&#xff0c;按F8健进入安全模式2、安全模式下进入Windows系统桌面后&#xff0c;按住“winR”打开运行窗口&#xff0c;输入“services.msc”打开服务设置3、在服务界面&#xff0c;选中…...

    2022/11/19 21:17:18
  27. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像&#xff08;每一幅图像的大小是564*564&#xff09; f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  28. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面&#xff0c;在等待界面中我们需要等待操作结束才能关机&#xff0c;虽然这比较麻烦&#xff0c;但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  29. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows&#xff0c;请勿关闭计算机”的提示&#xff0c;要过很久才能进入系统&#xff0c;有的用户甚至几个小时也无法进入&#xff0c;下面就教大家这个问题的解决方法。第一种方法&#xff1a;我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  30. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题&#xff0c;电脑时发现开机屏幕显现“正在配置Windows Update&#xff0c;请勿关机”(如下图所示)&#xff0c;而且还需求等大约5分钟才干进入系统。这是怎样回事呢&#xff1f;一切都是正常操作的&#xff0c;为什么开时机呈现“正…...

    2022/11/19 21:17:13
  31. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示&#xff0c;没过几秒后电脑自动重启&#xff0c;每次开机都这样无法进入系统&#xff0c;此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一&#xff1a;开机按下F8&#xff0c;在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  32. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况&#xff0c;就是电脑提示正在准备windows请勿关闭计算机&#xff0c;碰到这样的问题该怎么解决呢&#xff0c;现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法&#xff1a;1、2、依次…...

    2022/11/19 21:17:11
  33. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后&#xff0c;每次关机的时候桌面上都会显示一个“配置Windows Update的界面&#xff0c;提示请勿关闭计算机”&#xff0c;每次停留好几分钟才能正常关机&#xff0c;导致什么情况引起的呢&#xff1f;出现配置Windows Update…...

    2022/11/19 21:17:10
  34. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着&#xff0c;别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚&#xff0c;只能是考虑备份数据后重装系统了。解决来方案一&#xff1a;管理员运行cmd&#xff1a;net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  35. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题&#xff1a;电脑提示“配置Windows Update请勿关闭计算机”怎么办&#xff1f;win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢&#xff1f;一般的方…...

    2022/11/19 21:17:08
  36. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 &#xff0c;然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  37. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  38. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了&#xff0c;具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面&#xff0c;长时间没反应&#xff0c;无法进入系统。这个问题原来帮其他同学也解决过&#xff0c;网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  39. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法&#xff0c;并在最后教给你1种保护系统安全的好方法&#xff0c;一起来看看&#xff01;电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中&#xff0c;添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  40. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候&#xff0c;开启电脑发现电脑显示&#xff1a;配置windows更新失败&#xff0c;正在还原更改&#xff0c;请勿关闭计算机。。.这要怎么办呢&#xff1f;下面小编就带着大家一起看看吧&#xff01;如果能够正常进入系统&#xff0c;建议您暂时移…...

    2022/11/19 21:17:02
  41. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机&#xff0c;电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  42. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题&#xff0c;就是我们的win7系统在关机的时候&#xff0c;总是喜欢显示“准备配置windows&#xff0c;请勿关机”这样的一个页面&#xff0c;没有什么大碍&#xff0c;但是如果一直等着的话就要两个小时甚至更久都关不了机&#xff0c;非常…...

    2022/11/19 21:17:00
  43. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时&#xff0c;一般是您正对windows进行升级&#xff0c;但是这个要是长时间没有反应&#xff0c;我们不能再傻等下去了。可能是电脑出了别的问题了&#xff0c;来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  44. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况&#xff0c;当我们打开电脑之后&#xff0c;发现一直停留在一个界面&#xff1a;“配置Windows Update失败&#xff0c;还原更改请勿关闭计算机”&#xff0c;等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  45. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57