Tag:thought

  • JS to achieve seamless connection of the rotation chart (3) the use of exclusive ideas, the realization of small dots fill color switch

    Time:2020-11-3

      HTML code —————————————————— <  ———————————————— JS code ———————————————————————- window.addEventListener(‘load’,function(){ //1. Get element var arrow-l = document.querySelector(‘.arrow-l’); var arrow-r = document.querySelector(‘.arrow-r’); var focus = document.querySelector(‘.focus’); var focuwidth = focus.offsetWidth; focus.addEventListener(‘mouseenter’,function(){   arrow-l.style.display = ‘block’;   arrow-r.style.display = ‘block’; }); focus.addEventListener(‘mouseleave’,function(){   arrow-l.style.display = ‘none’;   arrow-r.style.display =’none’; });   //2. Dynamic generation of small dots var ul = […]

  • JS to achieve seamless connection of the rotating picture (4) click on the small dot, move the picture

    Time:2020-11-2

      HTML code —————————————————— <  ———————————————— JS code ———————————————————————- window.addEventListener(‘load’,function(){ //1. Get element var arrow-l = document.querySelector(‘.arrow-l’); var arrow-r = document.querySelector(‘.arrow-r’); var focus = document.querySelector(‘.focus’); var focuwidth = focus.offsetWidth; focus.addEventListener(‘mouseenter’,function(){   arrow-l.style.display = ‘block’;   arrow-r.style.display = ‘block’; }); focus.addEventListener(‘mouseleave’,function(){   arrow-l.style.display = ‘none’;   arrow-r.style.display =‘none’; });   //2. Dynamic generation of small dots var ul = […]

  • Innate cognition and deep learning

    Time:2020-10-25

    “The theory of innate ability holds that human thinking is innate thought or knowledge. Among these ideas, the most famous one is Plato’s theory of form and later Descartes’ meditations. At present, this view is gaining neuroscience evidence that we are indeed born with a innate understanding of our world. Figure 1: An elder Plato […]

  • Getting started with Redux 0x104: action creators

    Time:2020-10-18

    Overview of 0x000 It’s a bit tiring to write long articles. Write short articles occasionally Concept of 0x001 In fact, many frameworks are not too difficult in technology. What is really difficult is the thought, and the breakthrough in thought is much more difficult than that in technology.reduxIt brings me a new idea of applying […]

  • sort

    Time:2020-3-31

    1、 Bubble sorting Basic ideas:Compare adjacent elements, and if the first is larger than the second, swap their positions. var arr=[19,8,3,10,32,16] let maopao=(arr)=>{ for(let i=0;i<arr.length;i++){ //Every time the flag bit is traversed, it must be set to false to determine whether the following elements have been exchanged flag = false; for(let j=0;j<arr.length-1-i;j++){ if(arr[j]>arr[j+1]){ var temp=arr[j+1] […]