as mentioned, the node egg.js development I use in the back end needs cookies, while the request used in the front end is fetch.js, but cannot complete the cross-domain request. 1.fetch main configuration credentials = include ,options.mode = "cor...
recently, I encountered a problem when using axios, that is, the data requested from the server by the same headers, of axios and jQuery is different. I would like to ask if there are any questions in this. Request for 1:axios header : 2:jQuery ajax...
at present, I have written the login operation in app.js. After obtaining Wechat s code, I obtain the authentication access-token from my own server. the code is as follows app.js onLaunch: function () { wx.login({ success: ...
to achieve the 60 seconds countdown after sending CAPTCHA, you can click again, but if you use setData to set the button button to disable, there is an asynchronous problem. When the countdown is 0, the crazy button can send several CAPTCHAs. How to sol...
Mini Program has been reporting this error when loading. What he found on the Internet is the problem of rendering APP s globalData. Let s add boot or load the page. doesn t quite understand what it means. Do you have a boss who has done it? Supp...
is not a simple thing. is nothing more than rendering, but heavy rendering only increases the amount of code, while the actual business is a little more complicated. I write WeChat Mini Programs and then use react to make simple problems more complica...
Getting the content of the element in js is not the same as it is displayed. console.log(this.children(this.children(item.parentElement, item-detail )[0], item-count )[0]) console.log(this.children(this.children(item.parentElement, item-detail )[...
how does the front end implement such a function (some interfaces are provided in the background) ...
first of all, import is not supported before Node 9. I made it possible to use import, in Node by introducing babel-cli and babel-preset-es2015 , but I still had a problem when importing axios. I didn t add a path when I import, which is similar...
I encountered a problem about queues in the process of learning promise. I encountered a problem in development, which requires an API for cyclic request for upload, but the following method does not seem to achieve the queue, so I beg God to help me tr...
for example, get a few values from the background, and then click on the corresponding time period of several days on this time plug-in, or who has a better plug-in? the demand is, for example, something happens from 3: 00 p.m. to 5: 00 p.m. on Zhang San...
the big god knows how js copies pictures to the pasteboard, with better compatibility ....
how do you share data among multiple html pages in a traditional multi-page project? (multiple pages involve cross-domain) ...
I store the internationalized locale state in vuex. When the page changes the language, the user changes the state in vuex to switch the language, which is normal in both html and js, but the initialization data in data cannot change according to the st...
the following data is pulled out of the interface (the data format is as follows), but the data in the "purpose " filter is also pulled out twice. How to insert the data pulled by the "purpose " into the 1. The first layer of data is rendered by this...
at first I used vue axios, application x-www-form-urlencoded; charset=UTF-8 server to return Access-Control-Allow-Origin:* but send% past unable to decode value ajax Content-Type : application json; charset=UTF-8 Access-Control-Allow-Origi...
ask for help! +v[ name ]+ < option> ; << ...
.el-tooltip__popper.is-dark { background: blue; color: -sharpfff; } el-tooltip popper__arrow, Arrowhead Black outline ...
The login page uses a separate style, so I want to add scoped to the login page to act on the current page, but the effect of html is gone, and small-level styles can be @media screen and (min-width: 1600px) { html { font-size: 100px; } } : ....
what is the difference between the actual size inside and outside the memory brackets used by js as shown in the figure? What does it mean? What does it mean if the value in parentheses is larger than the outside? Which sizes are worth meeting that i...
< H2 > problem description < H2 > there is an A parent class use A; class B extend A { public function __construct() { } public function index() { echo "Method: index"; } } $a = new A; $a->index(); ca...
before the project encountered a problem, we need to send text messages in batches, so we have to query the database according to certain conditions, and then get the mobile phone number to send the message. uses a loop to query the data when it is done...
when I use toDataUrl () to convert canvas to png, sometimes I get an all-black picture, but the amazing thing is that sometimes the picture is normal, does anyone know what s going on? "stage" canvas const canvas = document.querySelec...
how to achieve in WeChat Mini Programs similar to ele.me APP slide right goods, left tab also corresponding switch, in WeChat Mini Programs realization, urgent! Better have demo,. I m here to thank you all. ...
what is the process of running start-all to start a spark cluster? ...