龟兔再跑

news2024/9/30 13:32:32

欢迎来到程序小院

龟兔再跑

玩法:乌龟跳绳,点击鼠标左键乌龟跳跃,两只乌龟一直不停的甩绳子,另外一只乌龟从中跳过,赶快去跳绳吧^^。

开始游戏icon-default.png?t=N7T8https://www.ormcc.com/play/gameStart/255

html

<div class="main" id="mainId">
 <div class="sence sence0" id="sence0Id"></div>
 <div class="sence sence1" id="sence1Id">
        <div class="rabbitFront">
         <img src="images/rabbit1.png">
            <div class="rabbitHand">
            <!--<img src="images/hand1.png" id="rabbitHandId" />-->
            </div>
        </div>
        <div class="jumpLineCtxBox" id="jumpLineCtxBoxId">
            <div class="jumpLineImg">
             <img src="images/line0.png" id="line0Id" style="z-index:5;">
                <img src="images/line1.png" id="line1Id" style="z-index:5;">
                <img src="images/line2.png" id="line2Id" style="z-index:5;">
                <img src="images/line3.png" id="line3Id" style="z-index:5;">
                <img src="images/line4.png" id="line4Id" style="z-index:5;">
                <img src="images/line5.png" id="line5Id">
                <img src="images/line6.png" id="line6Id">
                <img src="images/line7.png" id="line7Id">
                <img src="images/line8.png" id="line8Id">
                <img src="images/line9.png" id="line9Id">
                <img src="images/line10.png" id="line10Id">
                <img src="images/line11.png" id="line11Id">
                <img src="images/line12.png" id="line12Id">
                <img src="images/line13.png" id="line13Id">
                <img src="images/line14.png" id="line14Id">
                <img src="images/line15.png" id="line15Id" style="z-index:5;">
                <img src="images/line16.png" id="line16Id" style="z-index:5;">
                <img src="images/line17.png" id="line17Id" style="z-index:5;">
                <img src="images/line18.png" id="line18Id" style="z-index:5;">
                <img src="images/line19.png" id="line19Id" style="z-index:5;">
            </div>
        </div>
        <div class="rabbitBack">
            <img src="images/rabbit2.png">
        </div>
        <div class="tortoiseBox" id="tortoiseBoxId">
         <div class="tortoise1" id="tortoise1Id" style="display: none;">
             <img src="images/tortoise_f1.png" id="tortoise1_loseId">
                <img src="images/tortoise_n1.png" id="torroise1_waitId">
                <img src="images/tortoise_n1.png" id="torroise1_walk1Id">
                <img src="images/tortoise_w1.png" id="torroise1_walk2Id">
                <img src="images/tortoise_up1.png" id="torroise1_jumpId">
            </div>
            
            <div class="tortoise2" id="tortoise2Id" style="display: none;">
             <img src="images/tortoise_f2.png" id="tortoise2_loseId">
                <img src="images/tortoise_n2.png" id="torroise2_waitId">
                <img src="images/tortoise_n2.png" id="torroise2_walk1Id">
                <img src="images/tortoise_w2.png" id="torroise2_walk2Id">
                <img src="images/tortoise_up2.png" id="torroise2_jumpId">
            </div>
            
            <div class="tortoise3" id="tortoise3Id" style="display: none;">
             <img src="images/tortoise_f3.png" id="tortoise3_loseId">
                <img src="images/tortoise_n3.png" id="torroise3_waitId">
                <img src="images/tortoise_n3.png" id="torroise3_walk1Id">
                <img src="images/tortoise_w3.png" id="torroise3_walk2Id">
                <img src="images/tortoise_up3.png" id="torroise3_jumpId">
            </div>
            
            <div class="tortoise4" id="tortoise4Id" style="display: none;">
             <img src="images/tortoise_f4.png" id="tortoise4_loseId">
                <img src="images/tortoise_n4.png" id="torroise4_waitId">
                <img src="images/tortoise_n4.png" id="torroise4_walk1Id">
                <img src="images/tortoise_w4.png" id="torroise4_walk2Id">
                <img src="images/tortoise_up4.png" id="torroise4_jumpId">
            </div>
        </div>
        <div class="scoreBox" id="scoreBoxId">
         <img src="images/0.png">
            <img src="images/1.png" class="display_no">
            <img src="images/2.png" class="display_no">
            <img src="images/3.png" class="display_no">
            <img src="images/4.png" class="display_no">
            <img src="images/5.png" class="display_no">
            <img src="images/6.png" class="display_no">
            <img src="images/7.png" class="display_no">
            <img src="images/8.png" class="display_no">
            <img src="images/9.png" class="display_no">
        </div>
        <!--文字提示-->
        <div class="bannerText">
         <div class="text">
             点击手机控制乌龟跳绳
            </div>
        </div>        
        <div class="ctrlBox" id="ctrlBoxId">
        </div>        
    </div>
    <div class="sence sence2" id="sence2Id" style="opacity: 0; display: none; z-index: -1;">
     <div class="gameEndBox">
         <img src="images/end.png">
        </div>
     <div class="mark"><span id="markId">
         <img src="images/0.png">
        </span></div>
        
        <div class="btn restartBtn" id="restartBtnId">
         <img src="images/btn_1.png">
        </div>
        <div class="btn shareBtn" id="shareBtnId">
   <img src="images/btn_2.png">
        </div>
        
        <div class="btn paihangBtn" id="paihangBtnId">
   <img src="images/btn_3.png">
        </div>
    </div>
</div>

css

  input{
    outline: none;
    resize: none;
    -webkit-appearance: none;
  }
  img{
  border:none; vertical-align:middle;}
  .left{float:left;}
  .right{float:right;}
  .clear{clear:both;}
  .aleft{text-align:left;}
  .aright{text-align:right;}
  .acenter{text-align:center;}
  .h10{height:10px;}
  .h20{height:20px;}
  .h30{height:30px;}
  .h60{height:60px;}

  .w20{width:20px;}
  .w40{width:40px;}
  .w60{width:60px;}
  .w80{width:80px;}
  .w120{width:120px;}
  .w160{width:160px;}
  .w170{width:170px;}
  .w180{width:180px;}
  .w200{width:200px;}
  .w240{width:240px;}
  .w260{width:260px;}
  .w270{width:270px;}
  .w280{width:280px;}
  .w320{width:320px;}
  .w360{width:360px;}
  .w400{width:400px;}
  .w440{width:440px;}
  .w480{width:480px;}
  .w30pe{width:30%;}
  .w40pe{width:40%;}
  .w100pe{width:100%;}

  .f08{font-size:0.8em}
  .f12{font-size:1.2em}
  .f14{font-size:1.4em;}
  .f16{font-size:1.6em;}
  .f24{font-size:2em;}

  .display_yes{display:block;}
  .display_no{display:none;}

  p{
    margin:10px 0;
    padding:0;
  }

  .p_indent{
    text-indent:24px;
  }

  .no_wrap{white-space:nowrap;}

  .ml_10{margin-left:10px;}
  .ml_20{margin-left:20px;}

  .mr_10{margin-right:10px;}
  .mr_20{margin-right:20px;}

  .mt_10{margin-top:10px;}
  .mt_20{margin-top:20px;}

  .mb_10{margin-bottom:10px;}
  .mb_20{margin-bottom:20px;}

  .ma_10{margin:10px;}
  .ma_20{margin:20px;}

  .pl_10{padding-left:10px;}
  .pl_20{padding-left:20px;}

  .pr_10{padding-right:10px;}
  .pr_20{padding-right:20px;}
  .pr_p1{padding-right:1%;}

  .pt_10{padding-top:10px;}
  .pt_20{padding-top:20px;}

  .pb_10{padding-bottom:10px;}
  .pb_20{padding-bottom:20px;}

  /*under line yes*/
  .underline_yes{text-decoration:underline;}

  /*under line no*/
  .underline_no{text-decoration:none;}

  .f_black{color:#000;}
  .f_white{color:#fff;}
  .f_blue{color:#069;}
  .f_red{color:#c00;}
  .f_green{color:#006600;}
  .f_yellow{color:#9d882a;}
  .f_pink{color:#fedbce;}
  .f_light_gray{color:#999;}
  .f_brown{color:#231815;}
  .f_orange{color:#f29600;}

js

var gameInfo=function(){
 this.score=0;//游戏得分
 this.timer=0;//游戏计时
 this.state=0;//0就绪,1进行中,2结束
 this.hp=0;//允许被绊倒的次数
 this.tortoiseInfo=-1;//-1未就绪,0乌龟就绪,1乌龟进入跳绳,2乌龟准备跳绳,3乌龟通过了,4乌龟被绊倒了
 this.nowTortoise=0;//当前乌龟
 this.waitTortoise=0;//下一只乌龟
 this.outTortoise=0;//离开的乌龟
 this.walkState=0;//0停止走路,1走路中
}
var gameInfoTemp;
var tortoiseInfoRightPositon={
 1:['-24%','-10%','40%'],
 2:['-21%','-11.2%','38.8%'],
 3:['-27.3%','-15.3%','33.7%'],
 4:['-21%','-11.2%','38.8%']
};
function initGame(){
 resetTortoise();
 document.getElementById('sence2Id').style.opacity='0';
 document.getElementById('sence0Id').style.display='block';
 document.getElementById('sence0Id').style.opacity='1';
 document.getElementById('sence0Id').style.zIndex=1
 if(!GetParam('restart')){
  loadingBox.style.opacity='0';
 }
 document.getElementById('sence0Id').style.opacity='1';
 setTimeout(function(){
  if(!GetParam('restart')){
   loadingBox.style.display='none';
  }
  document.getElementById('sence2Id').style.display='none';
  document.getElementById('sence2Id').style.zIndex=-1;
 },500);
 gameInfoTemp=new gameInfo;
 gameInfoTemp.score=0;//游戏得分
 gameInfoTemp.timer=0;//游戏计时
 gameInfoTemp.state=0;//0就绪,1进行中,2结束
 gameInfoTemp.hp=0;//允许被绊倒的次数
 gameInfoTemp.tortoiseInfo=-1;//-1未就绪,0乌龟就绪,1乌龟进入跳绳,2乌龟准备跳绳,3乌龟通过了,
  4乌龟被绊倒了
 gameInfoTemp.nowTortoise=0;//当前乌龟
 gameInfoTemp.waitTortoise=0;//下一只乌龟
 gameInfoTemp.outTortoise=0;//离开的乌龟
 gameInfoTemp.walkState=0;//0停止走路,1走路中
 document.getElementById('sence0Id').onclick=function(){
  gotoSence1();//进入场景1,游戏开始
 }
}
function resetTortoise(){
 for(var i=1;i<=4;i++){
  document.getElementById('tortoise'+i+'Id').style.right=tortoiseInfoRightPositon[i-1];
  document.getElementById('tortoise'+i+'Id').style.display='none';
 }
}
function gotoSence1(){
 setScore(gameInfoTemp.score);
 document.getElementById('sence0Id').style.opacity='0';
 document.getElementById('sence1Id').style.display='block';
 document.getElementById('sence1Id').style.opacity='1';
 document.getElementById('sence1Id').style.zIndex=9;
 setTimeout(function(){
  document.getElementById('sence0Id').style.display='none';
  document.getElementById('sence0Id').style.zIndex=1;
 },500);
 setJumpLineAni();
}
function setJumpLineAni(){
 var lineInfo=function(){
  this.nowPosition=0;//偏移位置f
  this.speed=1;//跳绳速度速度
  this.timeSpeed=80;//动画速度
  this.timeer=0;
  this.state=0;
  this.jumpJudgeState=0;//0还未点击跳跃,1跳跃按钮成功
  this.jumpState=-1;//0lose,1win
  this.jumpStep=0;
 }
 var jumpInfoTemp;
 document.getElementById('ctrlBoxId').onclick=function(){}
 var valuesLeft={
  node:'ctrlBoxId',
  clickEvent:'on',
  eventStart:function(e){ 
  },
  eventMove:function(e){},
  eventEnd:function(e){
   jumpJudge();//点击跳跃,判断是否跳成功
  }
 }
 AddEventHandlers(valuesLeft);
 jumpInfoTemp=new lineInfo;
 runJumpLine();
 function runJumpLine(){//执行一次跳绳动画
  jumpInfoTemp.nowPosition=0;//偏移位置
  //jumpInfoTemp.speed=jumpInfoTemp.speed+0.1;//跳绳速度速度
  jumpInfoTemp.timeer=0;
  jumpInfoTemp.state=0;//跳绳圈位置
  jumpInfoTemp.jumpJudgeState=0;//0还未点击跳跃,1跳跃按钮开始成功
  jumpInfoTemp.jumpState=-1;//0lose,1win
  jumpInfoTemp.jumpStep=0;
  //设置跳绳速度
  /*
  jumpInfoTemp.speed=1+Math.floor(gameInfoTemp.score/2)*5/100;
  */
  console.log('当前跳绳速度'+jumpInfoTemp.speed); 
  //console.log(jumpInfoTemp);
  jumpInfoTemp.timer=window.setInterval(function(){
   if(jumpInfoTemp.state==5){
    window.clearInterval(jumpInfoTemp.timer);
    return;
   }
   if(jumpInfoTemp.state==4){
    window.clearInterval(jumpInfoTemp.timer);
    runJumpLine();
    return;
   }
   getJumpPosition();
  },jumpInfoTemp.timeSpeed);
  function getJumpPosition(){//计算二次赛贝尔曲线坐标
   switch(jumpInfoTemp.jumpStep){
    case 0:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line19Id').style.display='none';
     document.getElementById('line0Id').style.display='block';
     if(gameInfoTemp.tortoiseInfo==0){
      setTortoiseGo();
     }
     jumpInfoTemp.jumpJudgeState=0;
    break;
    case 1:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line0Id').style.display='none';
     document.getElementById('line1Id').style.display='block';
     jumpInfoTemp.jumpJudgeState=0;
    break;
    case 2:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line1Id').style.display='none';
     document.getElementById('line2Id').style.display='block';
     jumpInfoTemp.jumpJudgeState=0;
    break;
    case 3:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line2Id').style.display='none';
     document.getElementById('line3Id').style.display='block';
     jumpInfoTemp.jumpJudgeState=0;
    break;
    case 4:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line3Id').style.display='none';
     document.getElementById('line4Id').style.display='block';
     jumpInfoTemp.jumpJudgeState=0; 
    break;
    case 5:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line4Id').style.display='none';
     document.getElementById('line5Id').style.display='block';
     jumpInfoTemp.jumpJudgeState=0;
    break;
    case 6:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line5Id').style.display='none';
     document.getElementById('line6Id').style.display='block';
     if(gameInfoTemp.waitTortoise==0){
      setTortoiseReady();
      gameInfoTemp.tortoiseInfo=0;
     }
     jumpInfoTemp.jumpJudgeState=0;
    break;
    case 7:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line6Id').style.display='none';
     document.getElementById('line7Id').style.display='block';
    break;
    case 8:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line7Id').style.display='none';
     document.getElementById('line8Id').style.display='block';
     jumpInfoTemp.jumpJudgeState=0;
    break;
    case 9:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line8Id').style.display='none';
     document.getElementById('line9Id').style.display='block';
     jumpInfoTemp.jumpJudgeState=0;
    break;
    case 10:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line9Id').style.display='none';
     document.getElementById('line10Id').style.display='block';
     jumpInfoTemp.jumpJudgeState=0;
    break;
    case 11:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line10Id').style.display='none';
     document.getElementById('line11Id').style.display='block';
     jumpInfoTemp.jumpJudgeState=0;
    break;
    case 12:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line11Id').style.display='none';
     document.getElementById('line12Id').style.display='block';
     for(var i=1;i<=4;i++){
      var tr=document.getElementById('tortoise'+i+'Id').style.right;
      if(tortoiseInfoRightPositon[i][2]==tr){
       gameInfoTemp.tortoiseInfo=2;
      }
     }
     jumpInfoTemp.jumpJudgeState=1;
    break;
    case 13:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line12Id').style.display='none';
     document.getElementById('line13Id').style.display='block';
    break;
    case 14:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line13Id').style.display='none';
     document.getElementById('line14Id').style.display='block'; 
    break;
    case 15:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line14Id').style.display='none';
     document.getElementById('line15Id').style.display='block';
    break;
    case 16:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line15Id').style.display='none';
     document.getElementById('line16Id').style.display='block';
     if(jumpInfoTemp.nowPosition<=jumpInfoTemp.maxMove/4){
      jumpInfoTemp.jumpJudgeState=0;
      console.log('进行跳跃判断结束');
     }
    break;
    case 17:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line16Id').style.display='none';
     document.getElementById('line17Id').style.display='block';
     
    break;
    case 18:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line17Id').style.display='none';
     document.getElementById('line18Id').style.display='block';
    break;
    case 19:
     jumpInfoTemp.jumpStep++;
     document.getElementById('line18Id').style.display='none';
     document.getElementById('line19Id').style.display='block';
     if(jumpInfoTemp.nowPosition<=0){
      if(gameInfoTemp.tortoiseInfo>1){
       console.log('当前乌龟状态:'+gameInfoTemp.tortoiseInfo);
       if(jumpInfoTemp.jumpState==1 || gameInfoTemp.tortoiseInfo==3){
        jumpInfoTemp.state=4;
        gameInfoTemp.score++;
        console.log('得分:'+gameInfoTemp.score);
        setTimeout(function(){
         setScore(gameInfoTemp.score);
         setTortoiseOut();
        },500);
       }else{
        jumpInfoTemp.state=5;
        jumpInfoTemp.jumpState=2;
        gameInfoTemp.tortoiseInfo=4;
        gameInfoTemp.walkState=0;
        //document.getElementById('linel0Id').src='images/endLine.png'; 
        gameOver();  
       }
      }else{
       jumpInfoTemp.state=4;
      }
      jumpInfoTemp.jumpJudgeState=0; 
     }
    break;
    default: 
   } 
  }
 }
 function hideTortoiseImg(tortoiseNumber){//隐藏乌龟图片
  var tortoiseObj=document.getElementById('tortoise'+tortoiseNumber+'Id').
    getElementsByTagName('img');
  for(var i=0;i<tortoiseObj.length;i++){
   tortoiseObj[i].style.display='none';
  }
 }
 function setTortoiseReady(){//设置乌龟准备
  if (gameInfoTemp.waitTortoise>0){
   return;
  }
  if(gameInfoTemp.nowTortoise<4){
   var torroiseRndNumber=gameInfoTemp.nowTortoise+1;
  }else{
   gameInfoTemp.waitTortoise=0;
   return;
  }
  hideTortoiseImg(torroiseRndNumber);
  gameInfoTemp.waitTortoise=torroiseRndNumber;
  console.log(gameInfoTemp.waitTortoise+'号乌龟进入准备');
  //初始化乌龟位置
  document.getElementById('tortoise'+gameInfoTemp.waitTortoise+'Id').
    style.webkitTransition='all 0s linear';
  document.getElementById('tortoise'+gameInfoTemp.waitTortoise+'Id').
    style.transition='all 0s linear';
  document.getElementById('tortoise'+gameInfoTemp.waitTortoise+'Id').
    style.display='none';
  //document.getElementById('tortoise'+gameInfoTemp.waitTortoise+'Id').
    style.webkitAnimation='tortoiseA 0.8s linear 1';
  //document.getElementById('tortoise'+gameInfoTemp.waitTortoise+'Id').
    style.animation='tortoiseA 0.8s linear 1';
  document.getElementById('tortoise'+gameInfoTemp.waitTortoise+'Id').
    style.webkitAnimation='';
  document.getElementById('tortoise'+gameInfoTemp.waitTortoise+'Id').
    style.animation='';
  document.getElementById('tortoise'+gameInfoTemp.waitTortoise+'Id').
    style.right=tortoiseInfoRightPositon[torroiseRndNumber][0];
  //设置乌龟岛准备位置
  setTimeout(function(){
   document.getElementById('tortoise'+gameInfoTemp.waitTortoise+'Id').
      style.display='block';
   document.getElementById('torroise'+gameInfoTemp.waitTortoise+'_walk1Id').
      style.display='block';     
   document.getElementById('tortoise'+gameInfoTemp.waitTortoise+'Id').
      style.webkitTransition='all 0.3s linear';
   document.getElementById('tortoise'+gameInfoTemp.waitTortoise+'Id').
      style.transition='all 0.3s linear';
   document.getElementById('tortoise'+gameInfoTemp.waitTortoise+'Id').
      style.right=tortoiseInfoRightPositon[gameInfoTemp.waitTortoise][1];
  },400);
 }

源码

需要源码请关注添加好友哦^ ^

转载:欢迎来到本站,转载请注明文章出处https://ormcc.com/

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1402920.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Vue开发者工具是什么?有哪些?

Vue开发者工具是什么&#xff1f; Vue开发者工具是用于Vue.js开发的浏览器扩展&#xff0c;提供了许多有用的功能和工具&#xff0c;帮助开发者更轻松地开发和调试Vue.js应用程序。 Vue开发者工具的功能特点有哪些&#xff1f; 1、组件树视图&#xff1a;Vue开发者工具可以显…

STM32-调用 vTaskStartScheduler API 后出现 HardFault

STM32 移植 FreeRTOS 后调用 vTaskStartScheduler() 后出现 HardFault 异常。 原因分析&#xff1a; FreeRTOS 配置头文件 FreeRTOSConfig.h 中与中断有关的配置和通过系统接口 void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup) 设置的中断分组冲突。 /* The lo…

Java NIO (三)NIO Channel类

1 概述 前面提到&#xff0c;Java NIO中一个socket连接使用一个Channel来表示。从更广泛的层面来说&#xff0c;一个通道可以表示一个底层的文件描述符&#xff0c;例如硬件设备、文件、网络连接等。然而&#xff0c;远不止如此&#xff0c;Java NIO的通道可以更加细化。例如&a…

Python并发编程的概念和重要性

并发编程是一种编程方式&#xff0c;它允许在单台处理器上同时处理多个任务或操作。这些任务可以在单个处理器上通过时间分片技术实现&#xff0c;也可以在多核或多处理器系统上真正地并行执行。并发性对于提高系统资源利用率、提升应用程序性能以及改善用户体验都至关重要。 并…

计算机网络-分层结构,协议,接口,服务

文章目录 总览为什么要分层怎样分层正式认识分层概念小结 总览 为什么要分层 发送文件前要做的准备工作很多 把这个准备工作分层小问题解决&#xff0c;也就分层解决 怎样分层 每层相互独立&#xff0c;每层做的工作不同 界面自然清晰&#xff0c;层与层之间的接口能够体现…

JS-日期对象

日期对象&#xff1a;用来表示时间的对象 作用&#xff1a;可以得到当前系统时间 实例化 在代码中发现了new关键字时&#xff0c;一般将这个操作称为实例化 创建一个时间对象并获取时间 1&#xff09;获得当前时间 const datenew Date() 2)获得指定时间 const datenew D…

蓝桥杯理历年真题 —— 数学

1. 买不到的数目 这道题目&#xff0c;考得就是一个日常数学的积累&#xff0c;如果你学过这个公式的话&#xff0c;就是一道非常简单的输出问题&#xff1b;可是如果没学过&#xff0c;就非常吃亏&#xff0c;在考场上只能暴力求解&#xff0c;或是寻找规律。这就要求我们什么…

【window】Windows11:该文件没有与之关联的应用来执行该操作

前些天发现了一个巨牛的人工智能学习网站&#xff0c;通俗易懂&#xff0c;风趣幽默&#xff0c;忍不住分享一下给大家。点击跳转到网站&#xff1a;人工智能 之前win10升级win11后&#xff0c;受不了桌面软件图标的的小箭头&#xff0c;所以弄掉了&#xff0c;但是随之而来产…

揭开Spring MVC的真面目

官方对于Spring MVC的描述为&#xff1a; Spring Web MVC是基于Servlet API框架构建的原始Web框架&#xff0c;从一开始就包含在Spring框架中。它的正式名称“Spring Web MVC”来自其源模块的名称&#xff08;Spring-webmvc&#xff09;&#xff0c;但它通常被称为“Spring-MVC…

数学建模--Radar图绘制

1.Radar图简介 最近在数学建模中碰见需要绘制Radar图(雷达图)的情况来具体分析样本的各个特征之间的得分与优劣关系&#xff0c;这样的情况比较符合雷达图的使用场景&#xff0c;一般来说&#xff0c;雷达图适用于展示多个维度的数据&#xff0c;并在一个平面上直观地呈现出不同…

宠物空气净化器推荐哪个好?实惠的猫用猫用净化器牌子测评

作为宠物主人&#xff0c;我们深知养宠物的乐趣和责任&#xff0c;但同时也面临着一些挑战&#xff0c;比如宠物掉毛、异味和空气质量等问题。这就是为什么越来越多的家庭选择宠物空气净化器&#xff0c;为我们创造一个清新、健康的室内环境。 无论我们多么爱我们的毛茸茸伙伴…

如何在 Ubuntu 22.04 上安装 Apache Web 服务器

前些天发现了一个人工智能学习网站&#xff0c;通俗易懂&#xff0c;风趣幽默&#xff0c;最重要的屌图甚多&#xff0c;忍不住分享一下给大家。点击跳转到网站。 如何在 Ubuntu 22.04 上安装 Apache Web 服务器 介绍 Apache HTTP 服务器是世界上使用最广泛的 Web 服务器。它…

【C++】priority_queue模拟实现过程中值得注意的点

&#x1f440;樊梓慕&#xff1a;个人主页 &#x1f3a5;个人专栏&#xff1a;《C语言》《数据结构》《蓝桥杯试题》《LeetCode刷题笔记》《实训项目》《C》《Linux》《算法》 &#x1f31d;每一个不曾起舞的日子&#xff0c;都是对生命的辜负 前言 本篇文章旨在记录博主在模…

[已解决]mysql关闭SSL功能和永久关闭SSL设置

概述 在搭建服务器连接本地数据库时发现有个报错信息&#xff1a; SQLState - 08S01 com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 292 milliseconds ago. The last …

如何查看苹果手机的CPU型号?

摘要 本文将介绍如何在苹果手机上查看CPU型号。通过简单的设置操作&#xff0c;您可以轻松地获取您的iPhone的CPU型号信息。此外&#xff0c;我们还将介绍一些克魔助手可以提供的其他功能&#xff0c;如内存监控、GPU性能监控和网络抓包等&#xff0c;以帮助您优化和提升iOS应…

设计模式—行为型模式之观察者模式

设计模式—行为型模式之观察者模式 观察者模式(Observer Pattern)&#xff1a;定义对象间的一种一对多依赖关系&#xff0c;使得每当一个对象状态发生改变时&#xff0c;其相关依赖对象皆得到通知并被自动更新。观察者模式又叫做发布-订阅&#xff08;Publish/Subscribe&#…

三.Winform使用Webview2加载本地HTML页面

Winform使用Webview2加载本地HTML页面 往期目录创建Demo2界面创建HTML页面在Demo2窗体上添加WebView2和按钮加载HTML查看效果 往期目录 往期相关文章目录 专栏目录 创建Demo2界面 经过前面两小节 一.Winform使用Webview2(Edge浏览器核心) 创建demo(Demo1)实现回车导航到指定…

同星多通道CAN FD转USB/WIFI设备,解决近距离无线通讯问题

新品发布/New products release 2024年1月&#xff0c;同星智能连续发布FlexRay系列产品TP1034和以太网系列产品TP1051&#xff0c;上周发布多通道总线记录仪产品TLog1004。1月19日&#xff0c;同星智能又推出一款2/4路CAN FD转USB和WIFI的工具&#xff0c;解决近距离无线通讯…

L1-079 天梯赛的善良(Java)

天梯赛是个善良的比赛。善良的命题组希望将题目难度控制在一个范围内&#xff0c;使得每个参赛的学生都有能做出来的题目&#xff0c;并且最厉害的学生也要非常努力才有可能得到高分。 于是命题组首先将编程能力划分成了 106 个等级&#xff08;太疯狂了&#xff0c;这是假的&…

如何使用支付宝沙箱环境本地配置模拟支付并结合内网穿透远程调试

文章目录 前言1. 下载当面付demo2. 修改配置文件3. 打包成web服务4. 局域网测试5. 内网穿透6. 测试公网访问7. 配置二级子域名8. 测试使用固定二级子域名访问 正文开始前给大家推荐个网站&#xff0c;前些天发现了一个巨牛的 人工智能学习网站&#xff0c; 通俗易懂&#xff…