Code: ready.touch = function (elem, fn) { elem.addEventListener( click , function (e) { fn.call(this, e); }, false); }; question: what is the purpose of this here? Who does it point to when the click event is ...
Cookie has the same origin policy, and different domain names cannot be accessed. for example, there are two websites, AMague C, and website C is a malicious website. How does website C get the Cookie of website An and send a request to the server of we...
such as the title. because two components are involved, I intend to use redux. The thing is, these two components are not displayed at first, in other words, the data does not need to be loaded by ajax at the beginning, and the data is not loaded unti...
want to achieve the effect in the following figure: there are multiple tags, each of which is of different length, and they are arranged freely. When more than two lines are arranged, the rest are automatically hidden, and the expand button is displa...
recently, I was working on a project with vue+elementUI. When I was doing a shopping cart, I was thinking about how it was sent to the backend when the number in the shopping cart changed. If I changed it once, it would definitely be bad. Then I went to ...
how does the Vue project realize one-click skinning on a website The item is the less, in which the css style is used and is written in the .vue file how to change the color of the website with one click ...
for example, the user logs in and gets the user data after the login is successful. What if there are multiple JS files that need user data? ...
requirements: similar to this diagram, it indicates that something flows to the specified node A (single point, user-specified single point), and data flows out of the specified node A. question: is there a picture library that meets this function...
I am in init.js Window.prototype.interface = function () { return https: xxx.xxxxxxx.com } Window.prototype.getParam=function (paramName) { var paramValue = "", isFound = !1; if (this.location.search.indexOf("?") == 0 &am...
how to get the data-index= "{{index}} " used by the index, of the corresponding checkbox in the function bound by bindchange. It is not easy to put the data-index= "{{index}} " in the standard red. The dataset obtained is empty, and the index= "{{...
the following styles are set under body : font-family: , ,Arial, Helvetica, sans-serif; there is no problem with displaying on the phone, but some Android machines have modified the default font of the system, so that the font of the page is n...
there is no checked item in the original data newsInformdata. Item.checked is added after a loop, but it is not displayed on the page. Console.log can be printed out. I do not know if the shallow copy is designed. It is not clear how to solve the pr...
< H1 > element-ui el-radio how can I click to deselect it again when it is already selected? < H1 > <template> <el-radio-group v-model="radio2" @change="onRadioChange"> <el-radio :label="3">&l...
the fuzzy box in bootstrap, I want to implement the function of becoming a confirm confirmation box similar to js. but I don t know how to receive whether the user presses to confirm or cancel. is there any integration of this function bootstrap? Or d...
the above picture is a scale drawn with canvas, but there is a problem. When the smallest scale exceeds 6000, the display of the browser will be blank, as if you can t draw so many scale points. Is there a solution to this? ...
RT. A forum within the bank will be developed in the near future. The business is very complicated, so I don t know which framework to choose ...
The page uses rem to make a responsive layout. One problem is that although resize modifies the font size of the html tag, the width and height of the page content (controlled by rem) remain unchanged, but open the console and select a tag. That tag ...
I want to realize that when the checkbox of a line is selected, the text box of this line can be typed. What should I do? Thank you! ...
traditional html pages cannot be internationalized through simple configuration, as i18n is used in vue all I can think of is to write a Chinese html page and an English html page, and read the corresponding page according to the parameters . but I d...
I think one-way data flow and two-way data binding for the form do not conflict. If you encounter a complex form, if you do not use a third-party library, you can only use state plus event monitoring processing, which is a bit troublesome. ...