Mouse over to view thumbnail detail image

... <div> <img src="img/2.jpg" alt="..." id="img2"/> <script type="text/javascript"> $(function(){ $("img[id^='img']").mouseover(function(e){ //Mouse moved in Var alt=this.alt; If(alt!="none"){ Var myTitle=this.title; Var imgTitle=myTitle?"<br/>"+myTitle:""; //Get...


Press the physical return button on the same page in mui to close the popup window. Do not return to the previous page

... If you need to reprint, please indicate the source. If there is a pop-up window in a page, when the pop-up window is open, clicking the physical return button only requires closing the current pop-up window instead of returning to the previous page. When you click the physical button...


Object-Oriented (Creating Objects)--Constructor Patterns 02

... There is an example in the previous factory pattern Now create a custom constructor to define the properties and methods of the custom object type. For example, you can use the constructor pattern to rewrite the above example as follows function Person(name, age, job) { this.name = name...


Copy the content of the webpage to automatically add copyright information

... Now many websites have copied the content of the webpage to automatically add copyright information, commonly known as small tail, such as: know, Jane, CSDN, etc. The code is real and effective, using the javascript oncopy event I have improved the Great God code, the record is as...


Recommend a markdown format to html format open source JavaScript library

... This markdown format to html format open source JavaScript library on github address: from markdown format to html source code format 新建一To the file ending with js, paste the following content into it: var markdown = require ( "markdown" ) . markdown ; console . log ( markdown . toHTML ...


After the page is refreshed, the tab remembers the location before the refresh

... , the last two weeks, the time is quite fast, stemming from the self-confidence of being a front-end, I feel that I will not be much. Two weeks passed, the project was completed on schedule, and I came to the pit. The remaining shortages are slowly improving! encountered a problem today...


How to get the value of js processing to follow the form form to submit to the servlet background

... 案例: Background: Get the selected value by js, but the value ss processed by js needs to be submitted to the servlet background with the form form. I am in a certain position in jsp; but this input is in the form form; Display: block; visible Display: none; hide When the value is...


The echarts chart is not aligned with the vertical axis in Vue.

... We generally use dynamic data. When ecarts processes the vertical axis values, it will be "friendly" to segment the vertical axis when processing these data. analysis. However, it is easy to cause trouble in multiple vertical axes, because the difference between the two data is large,...


WeChat page entry file is cached solution

... Cache is one of the tools for speeding up page loading for front-end pages, but it also brings a lot of problems, such as how to replace the cache on the client after the new version is released. What about the file? The general solution for everyone is mainly in the following forms: 普通...


Note 1: Background introduction

... 一, Meet JavaScript 1. Website development mode: design, front end, back end 2.Web front section: HTML, CSS, js 3.JavaScript is a lightweight scripting language; JavaScript is a literal translation scripting language; Is a dynamic type, weak type, prototype-based language, built-in...