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. ...
but the problem I encounter when uploading compressed img is . Before I uploaded compressed img, it was jpg, but after compressed, it was png? and then there is the white background after the real img compression before I compress. I don t know wh...
when webapp steps back to the background, you want to use polling to simulate push. The value in setInterval has been changed to the value in store, but the latest value cannot be obtained in the next timer. What is the reason ...
I can get it from the command line, but I just can t get it in the code. How to solve it? ...
problem description this is the expansion pack I want to install: https: github.com jianyan74 . use the command to install composer require jianyan74 yii2-easy-wechat the environmental background of the problems and what methods you have tried ...
problem description at present, in Mini Program, using native code development, it appears that the activity introduction is rich text, so wxParse is used for parsing, but there are garbled codes . as shown in figure [picture] I wonder if you h...