鱼C论坛

 找回密码
 立即注册
查看: 2038|回复: 2

[已解决]第七课课后作业动动手第二题为什么浏览器一直在载入

[复制链接]
发表于 2018-7-12 07:49:52 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
fishc.js
  1. /*
  2. * --> 要求 <--
  3. * A. 开启弹幕效果
  4. * B. 开启星星特效
  5. * C. 在fishc.css中找到并完成该需求
  6. */
  7. window.onload =function(){
  8.     var RUN_AS_ANIMATION = true,

  9.     wrapper, canvas, context, width = 600, height = 600, Tau = Math.PI * 2,
  10.     systems = [],
  11.     mouseX = 0, mouseY = 0, repelMouse = true,
  12.     copyCount = 1, sequenceCount = 0, maxSequenceCount = 22, sequenceDelay = 2000,
  13.     orbitting = false, orbitAngle, orbitDegrees = 0, orbitSpeed = 1, orbitalRadius = 10, PI180 = Math.PI / 180,
  14.     orbitVX, orbitVY,
  15.     colourInterval,
  16.     repaintColour = "rgba(0,0,0, .05)",
  17.     pathObjects = [];
  18.     pathObjects.push({
  19.         pLength: 0,
  20.         dom: null,
  21.         pcStep: 0,
  22.         pt: null,
  23.         id: "heart",
  24.         shape: "M 209.95 88.4 Q 210 86.85 210 86.5 210 86.05 210 85.6 210.65 27.5 177.7 7.25 143.7 -13.75 104.9 26 66.3 -13.75 32.3 7.25 -1.85 28.2 0.1 89.75 2.05 151.35 104.9 230 207.95 151.35 209.9 89.75 209.9 89.05 209.95 88.4 Z"
  25.     }),
  26.     // 注销了此函数的块注释
  27.     pathObjects.push({
  28.         pLength: 0,
  29.         dom: null,
  30.         pcStep: 0,
  31.         pt: null,
  32.         id: "star",
  33.         shape: "M 0 115.05 L 81.35 86.25 83.55 0 136 68.5 218.7 43.95 169.8 115.05 218.7 186.1 136 161.55 83.55 230 81.35 143.8 0 115.05 Z"
  34.     }),
  35.    
  36.     pathObjects.push({
  37.         pLength: 0,
  38.         dom: null,
  39.         pcStep: 0,
  40.         pt: null,
  41.         id: "circle",
  42.         shape: "M 220 110 Q 220 155.6 187.75 187.8 155.6 220 110 220 64.4 220 32.15 187.8 0 155.6 0 110 0 64.4 32.15 32.2 64.4 0 110 0 155.6 0 187.75 32.2 220 64.4 220 110 Z"
  43.     }),
  44.     pathObjects.push({
  45.         pLength: 0,
  46.         dom: null,
  47.         pcStep: 0,
  48.         pt: null,
  49.         id: "smallHeart",
  50.         shape: "M 174.15 97.5 Q 174.2 96.45 174.2 96.25 174.2 95.95 174.2 95.65 174.6 57.35 152.9 44.05 130.5 30.2 104.95 56.4 79.55 30.2 57.15 44.05 34.65 57.85 35.9 98.35 37.2 138.95 104.95 190.75 172.85 138.95 174.15 98.35 174.15 97.9 174.15 97.5 Z"
  51.     }),
  52.     pathObjects.push({
  53.         pLength: 0,
  54.         dom: null,
  55.         pcStep: 0,
  56.         pt: null,
  57.         id: "hallow",
  58.         shape: "M 220 188.7 L 219.5 187.75 Q 219.25 188.25 219.05 188.7 L 220 188.7 Z M 219.5 187.75 L 107.3 0.95 107.3 63.075 Q 107.85 63.05 108.4 63.05 116.65 63.05 124.15 64.95 140.05 68.9 152.5 81.3 170.75 99.6 170.75 125.4 170.75 139.9 165 152.05 M 219.05 188.7 L 106.95 188.7 0 188.7 107 0.45 107.3 0.95 M 106.95 188.7 L 106.95 187.75 106.9 187.75 Q 82 187.25 64.3 169.5 46 151.25 46 125.4 46 111.2 51.55 99.3 56.1 89.5 64.3 81.3 82 63.55 106.9 63.1 L 106.95 63.1 Q 107.125 63.087890625 107.3 63.075 L 107.3 187.75 Q 107.480859375 187.75 107.65 187.75 108 187.75 108.4 187.75 134.2 187.75 152.5 169.5 160.3 161.7 164.75 152.5 M 107.3 187.75 Q 107.1302734375 187.75 106.95 187.75"
  59.     }),
  60.     pathObjects.push({
  61.         pLength: 0,
  62.         dom: null,
  63.         pcStep: 0,
  64.         pt: null,
  65.         id: "kiss",
  66.         shape: "M 220 111.85 Q 219.6 112.1 219.2 112.35 187.4 131.35 162.3 153.55 141.15 172.15 110.5 173.35 79.15 172.4 57.8 153.55 32.6 131.3 0.6 112.2 0.3 112.05 0.05 111.85 M 219.2 112.35 Q 215.5 113.85 202.2 106.5 187.95 98.5 165 71 142.4 43.9 109.9 62.05 77.35 43.9 54.75 71 31.8 98.5 17.55 106.5 4.25 113.85 0.6 112.2 M 36.3 113.85 Q 65.95 119.15 84.55 120.75 109.25 111.8 130.8 120.05 151.35 118.9 179.7 113.85 M 84.55 120.75 Q 109.25 127.95 130.8 120.05"
  67.     }),


  68.     window.requestAnimFrame = (function () {
  69.         return window.requestAnimationFrame ||
  70.         window.webkitRequestAnimationFrame ||
  71.         window.mozRequestAnimationFrame ||
  72.         window.oRequestAnimationFrame ||
  73.         window.msRequestAnimationFrame ||
  74.         function (callback, element) {
  75.             window.setTimeout(callback, 1000 / 60);
  76.         };
  77.     })();

  78.     var ParticleSystem = function (id) {
  79.         Object.defineProperty(this, 'colour', {value: '#FF1515', writable: true});
  80.         Object.defineProperty(this, 'friction', {value: .9, writable: true});                // f < 1 == slows;  f > 1 == speeds up
  81.         Object.defineProperty(this, 'height', {value: 100, writable: true});
  82.         Object.defineProperty(this, 'id', {value: id, writable: true});
  83.         Object.defineProperty(this, 'maxSpeed', {value: 10, writable: true});
  84.         Object.defineProperty(this, 'mouseRepelDist', {value: 100, writable: true});         // Size of repel circle
  85.         Object.defineProperty(this, 'mouseForce', {value: .05, writable: true});             // dist particle moves when influenced by mouse. lower number: blends shape more: .05 - n
  86.         Object.defineProperty(this, 'numParticles', {value: 50, writable: true});
  87.         Object.defineProperty(this, 'particles', {value: [], writable: true});
  88.         Object.defineProperty(this, 'repelMouse', {value: true, writable: true});
  89.         Object.defineProperty(this, 'springTo', {value: true, writable: true});
  90.         Object.defineProperty(this, 'springForce', {value: .01, writable: true});           // speed of return to spring point. tightness
  91.         Object.defineProperty(this, 'wandering', {value: true, writable: true});
  92.         Object.defineProperty(this, 'wander', {value: .05, writable: true});                  // bigger number - fuzzier .05 just perceptible
  93.         Object.defineProperty(this, 'wanderMod', {value: this.wander * .5, writable: true});
  94.         Object.defineProperty(this, 'width', {value: 100, writable: true});
  95.         Object.defineProperty(this, 'x', {value: 0, writable: true});
  96.         Object.defineProperty(this, 'y', {value: 0, writable: true});
  97.     }
  98.     ParticleSystem.prototype.setWander = function (value) {
  99.         this.wander = value;
  100.         this.wanderMod = value * .5
  101.     }

  102.     ParticleSystem.prototype.generate = function () {
  103.         for (var j = 0; j < pathObjects.length; j += 1) {
  104.             pathObjects[j].pcStep = pathObjects[j].pLength / this.numParticles;
  105.         }
  106.         var pShapeArrayX, pShapeArrayY;
  107.         for (var i = 0; i < this.numParticles; i++) {
  108.             pShapeArrayX = [];
  109.             pShapeArrayY = [];
  110.             for (var p = 0; p < pathObjects.length; p += 1) {
  111.                 pathObjects[p].pt = pathObjects[p].dom.getPointAtLength(i * pathObjects[p].pcStep);
  112.                 pShapeArrayX.push(pathObjects[p].pt.x + ((this.width - 220) / 2));
  113.                 pShapeArrayY.push(pathObjects[p].pt.y + ((this.height - 230) / 2));
  114.             }
  115.             var p = new Particle("p" + i, pShapeArrayX, pShapeArrayY, this);
  116.             this.particles.push(p);
  117.         }
  118.     }

  119.     ParticleSystem.prototype.update = function () {
  120.         var particle;
  121.         for (var i = 0; i < this.numParticles; i++) {
  122.             particle = this.particles[i];
  123.             particle.pUpdate();
  124.         }
  125.     }

  126.     ParticleSystem.prototype.pShapeMorph = function (value) {
  127.         var particle;
  128.         for (var i = 0; i < this.numParticles; i++) {
  129.             particle = this.particles[i];
  130.             particle.pChangeSpringPoint(value);
  131.         }
  132.     }

  133.     var Particle = function (id, x, y, parentSystem) {
  134.         Object.defineProperty(this, 'id', {value: id, writable: true});
  135.         Object.defineProperty(this, 'shapesX', {value: x, writable: true});
  136.         Object.defineProperty(this, 'shapesY', {value: y, writable: true});
  137.         Object.defineProperty(this, 'x', {value: this.shapesX[0], writable: true});
  138.         Object.defineProperty(this, 'y', {value: this.shapesY[0], writable: true});
  139.         Object.defineProperty(this, 'sx', {value: this.x, writable: true});
  140.         Object.defineProperty(this, 'sy', {value: this.y, writable: true});
  141.         Object.defineProperty(this, 'vx', {value: 0, writable: true});
  142.         Object.defineProperty(this, 'vy', {value: 0, writable: true});
  143.         Object.defineProperty(this, 'densityScore', {value: 1, writable: true});
  144.         Object.defineProperty(this, 'parentSystem', {value: parentSystem, writable: true});
  145.         return this;
  146.     }

  147.     Particle.prototype.pChangeSpringPoint = function (value) {
  148.         if (value < 0) value = 0;
  149.         if (value >= this.x.length) value = this.x.length - 1;
  150.         this.sx = this.shapesX[value];
  151.         this.sy = this.shapesY[value];
  152.     }

  153.     Particle.prototype.pUpdate = function () {
  154.         if (this.parentSystem.wandering) {
  155.             this.vx += Math.random() * this.parentSystem.wander - this.parentSystem.wanderMod;
  156.             this.vy += Math.random() * this.parentSystem.wander - this.parentSystem.wanderMod;
  157.         }


  158.         this.vx *= this.parentSystem.friction;
  159.         this.vy *= this.parentSystem.friction;


  160.         var speed = Math.sqrt(this.vx * this.vx + this.vy * this.vy);
  161.         if (speed > this.parentSystem.maxSpeed) {
  162.             this.vx = this.parentSystem.maxSpeed * this.vx / speed;
  163.             this.vy = this.parentSystem.maxSpeed * this.vy / speed;
  164.         }

  165.         if (this.parentSystem.springTo) {
  166.             this.vx += (this.sx - this.x) * this.parentSystem.springForce;
  167.             this.vy += (this.sy - this.y) * this.parentSystem.springForce;
  168.         }


  169.         if (this.parentSystem.repelMouse) {
  170.             var dx = mouseX - this.x;
  171.             var dy = mouseY - this.y;
  172.             var dist = Math.sqrt(dx * dx + dy * dy);
  173.             if (dist < this.parentSystem.mouseRepelDist) {
  174.                 var tx = mouseX - this.parentSystem.mouseRepelDist * dx / dist;
  175.                 var ty = mouseY - this.parentSystem.mouseRepelDist * dy / dist;
  176.                 this.vx += (tx - this.x) * this.parentSystem.mouseForce;
  177.                 this.vy += (ty - this.y) * this.parentSystem.mouseForce;
  178.             }
  179.         }

  180.         this.x += this.vx;
  181.         this.y += this.vy;
  182.     };

  183.     function get(id) {
  184.         return document.getElementById(id);
  185.     }

  186.     function createCanvas(id, w, h) {
  187.         var tCanvas = document.createElement("canvas");
  188.         tCanvas.width = w;
  189.         tCanvas.height = h;
  190.         tCanvas.id = id;
  191.         return tCanvas;
  192.     }

  193.     function init() {
  194.         var tPath;
  195.         for (var i = 0; i < pathObjects.length; i += 1) {
  196.             tPath = document.createElementNS('http://www.w3.org/2000/svg', 'path');
  197.             tPath.setAttribute('d', pathObjects[i].shape);
  198.             pathObjects[i].dom = tPath;
  199.             pathObjects[i].pLength = tPath.getTotalLength();
  200.         }

  201.         wrapper = get("wrapper");
  202.         canvas = createCanvas("canvas", width, height);
  203.         wrapper.appendChild(canvas);
  204.         context = canvas.getContext("2d");

  205.         var system1 = new ParticleSystem('pSys1');
  206.         systems.push(system1);
  207.         system1.width = width;
  208.         system1.height = height;
  209.         system1.maxSpeed = 3;
  210.         system1.scalar = .3;
  211.         system1.numParticles = 100;
  212.         system1.x = 150;
  213.         system1.y = 150;
  214.         system1.setWander(1);
  215.         system1.generate();
  216.     }

  217.     function update() {
  218.         for (var i = 0; i < systems.length; i++) {
  219.             systems[i].update();
  220.         }
  221.         if (orbitting) {
  222.             doOrbit();
  223.         }
  224.     }

  225.     function draw() {
  226.         var system;
  227.         for (var i = 0; i < systems.length; i++) {
  228.             system = systems[i];
  229.             context.fillStyle = system.colour;
  230.             var particle;
  231.             for (var j = 0; j < system.numParticles; j += 1) {
  232.                 particle = system.particles[j];
  233.                 context.beginPath();
  234.                 if (particle.densityScore > 0) {
  235.                     context.arc(particle.x, particle.y, particle.densityScore, 0, Tau, false);
  236.                 }
  237.                 context.fill();
  238.             }
  239.         }
  240.     }

  241.     function animate() {
  242.         context.fillStyle = repaintColour;
  243.         context.fillRect(0, 0, width, height);
  244.         update();
  245.         draw();
  246.         requestAnimFrame(animate);
  247.     }

  248.     function setUpEvents() {
  249.         function getMousePos(canvas, evt) {
  250.             var rect = canvas.getBoundingClientRect();
  251.             return {
  252.                 x: evt.clientX - rect.left,
  253.                 y: evt.clientY - rect.top
  254.             };
  255.         }

  256.         canvas.addEventListener('mousemove', function (evt) {
  257.             var mousePos = getMousePos(canvas, evt);
  258.             mouseX = mousePos.x;
  259.             mouseY = mousePos.y;
  260.         }, false);
  261.     }

  262.     function doOrbit() {
  263.         orbitAngle = orbitDegrees * PI180;
  264.         orbitDegrees += orbitSpeed;
  265.         orbitVX = orbitalRadius * Math.cos(orbitAngle);
  266.         orbitVY = orbitalRadius * Math.sin(orbitAngle);
  267.         mouseX = orbitVX + width * .5;
  268.         mouseY = orbitVY + height * .5;
  269.         orbitSpeed *= 1.003;
  270.         orbitalRadius *= 1.003;
  271.     }

  272.     function randomColour() {
  273.         var r = Math.round(Math.random() * 125) + 130,
  274.         g = Math.round(Math.random() * 155) + 100,
  275.         b = Math.round(Math.random() * 155) + 100;
  276.         return 'rgb(' + r + ',' + g + ',' + b + ')';
  277.     }

  278.     function clickHandler(evt) {
  279.         switch (evt.target.id) {
  280.             case "heart":
  281.             systems[0].pShapeMorph(0);
  282.             break;
  283.             case "star":
  284.             systems[0].pShapeMorph(1);
  285.             break;
  286.             case "circle":
  287.             systems[0].pShapeMorph(2);
  288.             break;
  289.             case "hallow":
  290.             systems[0].pShapeMorph(4);
  291.             break;
  292.             case "kiss":
  293.             systems[0].pShapeMorph(5);
  294.             break;
  295.             case "wander":
  296.             systems[0].setWander(evt.target.value);
  297.             break;
  298.             case "friction":
  299.             systems[0].friction = evt.target.value;
  300.             break;
  301.             case "mouseDistance":
  302.             systems[0].mouseRepelDist = evt.target.value;
  303.             break;
  304.             case "mouseForce":
  305.             systems[0].mouseForce = evt.target.value;
  306.             break;
  307.             case "springForce":
  308.             systems[0].springForce = evt.target.value;
  309.             break;
  310.             default:
  311.             /* [[-_-]] */
  312.         }
  313.     }

  314.     function enableUI() {
  315.         get("heart").addEventListener("click", clickHandler, false);
  316.         get("star").addEventListener("click", clickHandler, false);
  317.         get("circle").addEventListener("click", clickHandler, false);
  318.         get("hallow").addEventListener("click", clickHandler, false);
  319.         get("kiss").addEventListener("click", clickHandler, false);

  320.         get('wander').addEventListener("change", clickHandler, false);
  321.         get('friction').addEventListener("change", clickHandler, false);
  322.         get('mouseDistance').addEventListener("change", clickHandler, false);
  323.         get('mouseForce').addEventListener("change", clickHandler, false);
  324.         get('springForce').addEventListener("change", clickHandler, false);
  325.         get('UI').style.display = "block";
  326.     }

  327.     function sequencer() {
  328.         sequenceCount++;
  329.         switch (sequenceCount) {
  330.             case 2:
  331.             sequenceDelay = 3000;
  332.             systems[0].colour = '#CACAF8';
  333.             get("w" + (copyCount++)).style.display = "none";
  334.             get("w" + copyCount).style.display = "block";
  335.             systems[0].pShapeMorph(1);
  336.             break;
  337.             case 3:
  338.             sequenceDelay = 3000;
  339.             systems[0].colour = '#FF1515';
  340.             get("w" + (copyCount++)).style.display = "none";
  341.             get("w" + copyCount).style.display = "block";
  342.             systems[0].pShapeMorph(0);
  343.             break;
  344.             case 4:
  345.             sequenceDelay = 500;
  346.             systems[0].colour = '#69359c';
  347.             systems[0].pShapeMorph(3);
  348.             break;
  349.             case 5:
  350.             sequenceDelay = 500;
  351.             systems[0].colour = '#FF1515';
  352.             systems[0].pShapeMorph(0);
  353.             break;
  354.             case 6:
  355.             sequenceDelay = 500;
  356.             systems[0].colour = '#69359c';
  357.             get("w" + (copyCount++)).style.display = "none";
  358.             get("w" + copyCount).style.display = "block";
  359.             systems[0].pShapeMorph(3);
  360.             break;
  361.             case 7:
  362.             sequenceDelay = 600;
  363.             systems[0].colour = '#FF1515';
  364.             systems[0].pShapeMorph(0);
  365.             break;
  366.             case 8:
  367.             sequenceDelay = 500;
  368.             systems[0].colour = '#69359c';
  369.             systems[0].pShapeMorph(3);
  370.             break;
  371.             case 9:
  372.             sequenceDelay = 1000;
  373.             systems[0].colour = '#FF1515';
  374.             systems[0].pShapeMorph(0);
  375.             break;
  376.             case 10:
  377.             sequenceDelay = 3500;
  378.             systems[0].pShapeMorph(2);
  379.             get("w" + (copyCount++)).style.display = "none";
  380.             get("w" + copyCount).style.display = "block";
  381.             break;
  382.             case 11:
  383.             sequenceDelay = 1200;
  384.             get("w" + (copyCount++)).style.display = "none";
  385.             get("w" + copyCount).style.display = "block";
  386.             mouseX = width * .5;
  387.             mouseY = height * .5;
  388.             systems[0].mouseForce = 7;
  389.             systems[0].mouseRepelDist = 175;
  390.             systems[0].springForce = .1;
  391.             systems[0].setWander(.05);
  392.             break;
  393.             case 12:
  394.             sequenceDelay = 9000;
  395.             orbitting = true;
  396.             break;
  397.             case 13:
  398.             sequenceDelay = 10000;
  399.             systems[0].colour = randomColour();
  400.             colourInterval = setInterval(function () {
  401.                 systems[0].colour = randomColour();
  402.             }, 500);
  403.             get("w" + (copyCount++)).style.display = "none";
  404.             get("w" + copyCount).style.display = "block";
  405.             break;
  406.             case 14:
  407.             sequenceDelay = 2000;
  408.             clearInterval(colourInterval);
  409.             systems[0].colour = '#FFFFFF';
  410.             break;
  411.             case 15:
  412.             sequenceDelay = 300;
  413.             systems[0].colour = '#FF1515';
  414.             get("w" + (copyCount++)).style.display = "none";
  415.             get("w" + copyCount).style.display = "block";
  416.             orbitting = false;
  417.             systems[0].pShapeMorph(0);
  418.             mouseX = width * .5;
  419.             mouseY = height * .5;
  420.             break;
  421.             case 16:
  422.             sequenceDelay = 300;
  423.             systems[0].mouseForce = 6;
  424.             systems[0].mouseRepelDist = 150;
  425.             break;
  426.             case 17:
  427.             sequenceDelay = 300;
  428.             systems[0].mouseForce = 4;
  429.             systems[0].mouseRepelDist = 100;
  430.             break;
  431.             case 18:
  432.             sequenceDelay = 7000;
  433.             systems[0].mouseForce = 0.05;
  434.             systems[0].mouseRepelDist = 100;
  435.             systems[0].friction = 1.01;
  436.             mouseX = 0;
  437.             mouseY = 0;
  438.             break;
  439.             case 19:
  440.             sequenceDelay = 300;
  441.             get("w" + (copyCount++)).style.display = "none";
  442.             get("w" + copyCount).style.display = "block";
  443.             systems[0].friction = .9;
  444.             systems[0].springForce = .01;
  445.             setUpEvents();
  446.             break;
  447.             case 20:
  448.             sequenceDelay = 2000;
  449.             break;
  450.             case 21:
  451.             sequenceDelay = 5000;
  452.             enableUI();
  453.             break;
  454.             case 22:
  455.             get("w" + copyCount).style.display = "none";
  456.             break;
  457.             default:
  458.         }
  459.         if (sequenceCount < maxSequenceCount) {
  460.             setTimeout(function () {
  461.                 sequencer();
  462.             }, sequenceDelay);
  463.         }
  464.     }
  465. // 此处注释取消
  466.     init();

  467.     animate();
  468.     if (!RUN_AS_ANIMATION) {
  469.         setUpEvents();
  470.         enableUI();
  471.     }
  472.     else {
  473.         setTimeout(function () {
  474.             sequencer();
  475.         }, sequenceDelay);
  476.     }
  477. };
复制代码


自己做了之后网页一直打不开,对了答案之后返现跟我操作的一样啊,浏览器试了搜狗和Chrome,都一样,求大神解惑,咦,刚去截图发现搜狗的打开了,虽然有点慢,然而Chrome的还是在转圈 微信截图_20180712074746.png
最佳答案
2018-7-12 08:43:12
fishc.js:
1. 去掉第500行的注释,开启弹幕效果
2. 去掉第27~36行的注释,开启星星特效


fishc.css修改一处:
C. 第46行增加color:#2ebb96;指定字体为鱼C元气绿

可用的代码包(VIP免费): heartBeat.zip (5.78 KB, 下载次数: 2, 售价: 5 鱼币)
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2018-7-12 08:43:12 | 显示全部楼层    本楼为最佳答案   
fishc.js:
1. 去掉第500行的注释,开启弹幕效果
2. 去掉第27~36行的注释,开启星星特效


fishc.css修改一处:
C. 第46行增加color:#2ebb96;指定字体为鱼C元气绿

可用的代码包(VIP免费): heartBeat.zip (5.78 KB, 下载次数: 2, 售价: 5 鱼币)
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2018-7-12 09:35:56 | 显示全部楼层
不二如是 发表于 2018-7-12 08:43
fishc.js:
1. 去掉第500行的注释,开启弹幕效果
2. 去掉第27~36行的注释,开启星星特效


感谢大神回复,代码是一样的,刚才发现Chrome也能打开了,就是第一次打开的时间要好久,回想一下搜狗第一次打开的时候也是我把它放那里好久没管.....   之后就都是秒开了,又试了我自己改的那个版本,也是秒开了(我可是改了文件名的).....   
会不会是浏览器需要另外加载一些组件什么的(就像看某些本地视频的时候,播放器需要另外下载对应的解码器)
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-5-1 02:15

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表