Category: jQuery
-
Post Views: 25 In the previous article, I shared with you the selection and configuration of multilingual plug-ins. Today, I will enter the most time-consuming and most test-testing step – classified translation. There are a total of 695 categories of my blog, and it took 4 hours to complete the manual translation. My fingers are almost exhausted. I stepped on…
-
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 domain name:http://editorweb.wjdev.chinamcloud.cnInterface in request:http://api.pcs.wjdev.chinamcloud.cn/v1/plan-tasks/274?login_id=2e368664c41b8bf511bcc9c65d86dbc3&login_tid=b26398238620e8cd15b0155cd7aee9b2, in response to 404 , the “Access-Control-Allow-Origin” header does not exist on the requested resource. as shown in Figure 1 Decide to implement a front-end AJAX request example in the local environment by yourself 3, POST request, response 200, but no response data. as shown in Figure 2 4. Refer…
-
Post Views: 49 1. When using Composer to upgrade from Yii 2.0.x, an error is reported:[ErrorException]undefined variable: nameMatchesRequiredPackage, as shown in Figure 1 2. Update 3 packages, first update the first 2, no errors are reported, and then update the third one, the error is reported, the search dependency package in the current project Bower-asset/jQuery.inputMask, does not exist, as shown…
-
Post Views: 11 1. The picture in the red box in the web interface is a picture called across the second-level domain name, as shown in Figure 1 2. The source code of the web page, the picture address in the red box is the second-level domain name relative to the current web page address, as shown in Figure 2…
-
Post Views: 12 1. Mobile phone dynamic code login, jQuery Validation plugin verification rules, as shown in Figure 1: 2. Enter a registered Taiwan mobile phone number first. Since the national area code is mainland China, so remind: Please set the national area code for overseas mobile phones, as shown in Figure 2: 3. Switch the national area code to…
-
Post Views: 52 The difference between echo(), print(), print_r() echo() is a language structure, no return value The function of print() is basically the same as echo(), and it is also a language structure. The difference is that print has a return value, and always returns 1 print_r is a recursive print for output array objects 2. What is the…
-
Post Views: 14 If the array is an sequential array and starts from 0, such as: public static $service_gid = array(11430, 11431, 11432); Then Now At this time, through InArray, it will detect whether 11430 is in the array, and it will return 0; If public static $service_gid = array(2=>11430, 3=>11431, 4=>11432); Then At this time, through InArray, it will…