Category: JavaScript
-
Post Views: 18 1. In Laravel 6, an error is reported: Illuminate\View\ViewException (E_ERROR) The mix manifest does not exist. as shown in Figure 1 2. Install Laravel Mix and execute the command: yarn install to install the npm dependency package of the current project 3. Run the MIX task and execute the command: npm run dev 4. Refresh the page,…
-
Post Views: 14 1. When executing the command: yarn run prod, prompt: browserslist caniuse-lite is outdated. Please run npx browserslist@latest –update-db. as shown in Figure 1 2. Execute the command: npx browserslist@latest –update-db , caniuse-lite has been successfully updated, and the target browser has no changes. as shown in Figure 2 3. When executing the command: yarn run prod, an…
-
Post Views: 14 1. Bootstrap file input is a very good HTML5 file upload plugin, which supports a series of features such as file preview and multi-selection. When uploading a file based on Bootstrap File Input v4.3.2, the existing parameters: upfile, file_id. as shown in Figure 1 2. Now you need to add new parameters: Type, based on the selection…
-
Post Views: 16 1. After the upload of the picture is successful, the GET request:https://console.xxx.cn/upload/20210319/20210385015127.png, the response 500. The root cause is that the domain name of the image after the upload is successful is not:https://console.xxx.cn, but:https://web.xxx.cn. as shown in Figure 1 2. Open the Initiator tab, view the request call stack, and execute the GET request on line 516…
-
Post Views: 14 1. In the previous release interface, only one channel is supported for a release. Therefore, the release of the three channels needs to call the interface (APP, Netease account, Weibo) 3 times respectively, as shown in Figure 1 2. On the current release interface, it is ready to publish at one time and can be published on…
-
Post Views: 95 1. In the Google Chrome browser, after today’s Toutiao is opened, it is blank, as shown in Figure 1 2. Check the console, report an error: access to xmlHttpRequest athttps://verify.snssdk.com/reportErrorfrom originhttps://www.toutiao.comHas been blocked by cors policy: request header field ra-ver is not allowed by access-control-allow-headers in preflight Response. As shown in Figure 2 3. Clear browsing data,…
-
Post Views: 12 1. Click the link in the web page frame and report an error: Uncaught DomException: blocked a frame with origin “https://cmcp.cmc.tianyirm.cn” from accessing a cross-origin frame. at todetail (https://cmcp.cmc.tianyirm.cn/sub-sites:253:19),如图1 2. Click at Todetail (http://cmcp.cmc.tianyirm.cn/sub-sites:253:19)View, as shown in Figure 2 3. Carefully analyze the reasons. The same-origin policy prevents the script from accessing the content of the website…