the first way: use CustomEvent provided natively by JavaScript to create custom events for example, you can create: var evt = new CustomEvent(type, {detail: msg, bubbles: true, cancelable: true}); then listen for and trigger a custom event element...
interview questions what is the difference between http2.0 and previous http and https which is more secure, http2.0 or https, and how to know that your protocol is http2.0 ...
1. Question: parent element has .parent: active , which changes the background color when clicked. The effect that wants to achieve is that if you click on a special child element, you don t want to trigger the parent element to change the backgrou...
recently, I intend to cache chat data locally. I encountered some problems in the process of using indexedDB,. The code is as follows let db; let chatDB = { indexedDB: window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.msIn...
export default { mounted() { let para = { offset: 0, limit: 50000, exchangeNo: "" }; var _this = this; let commodityCode = []; axios.post( api zd futures list , para) .then(function(response) { _this.total = response.data.total;...
how do I uninstall all npm global packages (including npm itself) and node.js in Windows10 and Unbuntu 16.04.2? A search on the Internet has found a lot of commands. It seems that uninstalling npm and nodejs is not an easy task. Ask for advice. ...
I use the following code to get data from the server, sometimes return a Promise object, sometimes return a json object, how can I write to ensure that I must return a json object? postFromServer ( requestParam ) { const _self = this; l...
the problem encountered in recent days, there is no problem when the Webstorm is first opened on the Mac, but after a while, you can t double-click class and other contents, and you have unloaded and reinstalled it. Do you have any good solutions? < h...
I dynamically get menu information from the background, and then dynamically load the route after processing, but the page is loaded with a blank for the first time and can only be refreshed once. The code is as follows. Please take a look at where the ...
in element-ui, when using the Cascader cascading selector, you can call children data, but cannot select, how to solve this situation? Html Code <el-cascader :options="options" v-model="selectedOptions" @change="handleCh...
scroll-view is used in Mini Program to achieve the left and right sliding effect. The code is roughly as follows wxml: <scroll-view scroll-x="true" class= container-body > <view class="container-body-box"> ...
I just wrote a test demo,. I don t know if it s my webpack configuration problem or something. When I run it, webpack-dev-server-- mode=development-- inline-- progress-- config build webpack.dev.conf.js the terminal display is as follows: ite...
question: how to implement text selection and replace worthwhile functions similar to rich text editors? var word = window.getSelection?window.getSelection():document.selection.createRange(); alert(word); using the above api, you can get the select...
for example, there is a need to process the picture at the front end to determine whether the picture uploaded by the user is found on ps s website. I don t seem to have seen any article in this area. I don t know whether js has this ability ....
problem description: how do I use regular expressions to find values in parentheses that begin with a colon (including colons, values are not limited to numbers)? example: match (: 123) ((:123)) (((:123))) always keep the parentheses at the pre...
is there a problem with my parameter passed in put form? Can t you transfer files in the form of put? I hope the Great God can answer one or two for me. <!DOCTYPE html> <html lang="en"> <head> <meta charset="...
want to start to build a nodejs micro-service system. There is not much information on the Internet. Have any experts actually done it? what are the technology stacks needed to ask for help? what are the good examples? refer to ....
the project process of our company is to write an interface document to the back end after the front end completes the project page, and which interfaces are expected to return which data. The back end starts to write the interface according to this docu...
question: there are several strings with the following structure in the list: 1.(:) 2.(:) requirement: click the corresponding item. If you click the item at the end of the month (: date) here, the value in the corresponding input is . (:) Click ag...
recently in the refactoring project, I saw such a structure in the code. I want to optimize it. I don t know what appropriate ways to write it. <li class="card-wrap" v-for="(item, idx) in orderList" :key="idx" @click=&...
Brotherhood question link: https: codeshelper.com q 10. displays the text on the home page by default http: localhost:8080 Fen app.vue <template> <div id="app"> <Header>< Header> <div class="...
from jdbc to hibernate, from hibernate to mybatis, has been numb to follow the trend, using for work use. I now have an idea to encapsulate and develop using jdbc+redis on the basis of JDBC, so that I can ravage jdbc in my own way I wonder if it is ...
background and phenomena the amount of data in the report_product_sales_ data table is 28 million; it has been tested that when the, order by primary key id,limit reaches 49 under the current data volume, the PRIMARY primary key index can be used w...
https: codepen.io niusz pen ....
how do I control the video playback of the vedio tag to stop after 1 minute? The playback absolutely stops after 1 minute, and the user can no longer play. seek advice from the great gods; add, I can only think of setInterval, but since the video is ...