Category: JavaScript

  • Post Views: 14 Solution: Add style=”z-index: 11;” on the parent element of the video embed code, which is still valid even in full screen! Final screenshot:

  • 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…

  • Post Views: 10 The implementation code is as follows: // uncheck the sorted line $(#checkout).live(Click, function(e){ if(!$(e.target).parent().hasClass(goods_row) ){ $(#checkout tr).removeClass(select-tr); } }); // sort, select the object to be moved $(#checkout .goods_row).live(Click, function(e){ if(!$(e.target).hasClass(goods_row) && !$(e.target).hasClass(goods_number) ){ var self = $(this); if(self.attr(merge_check) {//Set sales $(#checkout tr).not($(.+self.attr(merge_check))…RemoveClass(select-tr); $(.+self.attr(merge_check)).ToggleClass(select-tr); }Else {//Single product sales $(#checkout tr).not(self).removeClass(select-tr); self.toggleclass(select-tr); } } }); // exchange order…

  • Post Views: 14 The most initial code: $this->widget(zii.widgets.jui.cjuidatepicker, array( name=>mendtime, value=>date(Y-M-D, time()), Language=>yii::app()->getLanguage(), options=>array( showanim=>slidedown, changeyear=>true, changemonth=>true, showweek=>true, autosize=>true, dateformat=>YY-MM-DD, maxdate=>0, Mindate=>-10d, , HtmlOptions=>array( readonly=>readonly, class=>txt, Style=>width:200px ) )); Post-realization: Implementation process: 1. Extension download on the official website of yii:http://www.yiiframework.com/extension/datetimepicker/ 2. Copy the cjuidateTimePicker folder to the protected\extensions directory; 3. tohttps://github.com/trentrichardson/jQuery-Timepicker-Addon下载语言包,因为yii扩展中没有语言包; 4. Look in the file CJUIDateTimePicker.php: $CS->RegisterScriptFile($assets.self::assets_name..js,cclientScript::pos_end); add…

  • Post Views: 10 The actual rules of the js function are: if (hasError == false) { return false; } else { return true; // If it returns true, the form submission operation will continue! }  

  • Post Views: 14 Since it is necessary to determine whether a value exists in this PHP array in JavaScript, you need to pass this PHP array into JavaScript! This effect can be achieved by using JSON-encoded variables using JSON_ENCODE – JSON encoded!   Finally, use $.inArray(item.gid, js_goods_ids) == -1 to determine whether the value of this js variable exists in…

  • Post Views: 10 HTML structure: <td><span id=”is_mar431″><input class=”is_mar” value=”0″ id=”is_mar431_0″ checked=”checked” type=”radio” name=”is_mar431″ /> <label for=”is_mar431_0″>no</label>&nbsp;<input class=”is_mar” value=”1″ id=”is_mar431_1″ type=”radio” name=”is_mar431″ /> <label for=”is_mar431_1″> is </label></span></td> JS structure (front):     // Whether it is damaged, select Yes, enter the text box of the damage information     $(“span[id^=is_mar]:radio”).change( function() {         var this_name = $(this).attr(“name”);         var input_id =mar_note_+this_name.substring(6);         if…

  • Post Views: 8   The current demand is to judge whether the number of changes in the exchanged goods is all 0. If all are 0, a prompt box needs to be popped up and submitted! javascript: // Iterate the number of changes in the product, if all are 0, it will not be submitted var sub = 0; $(“.goods_number”).each(function…

  • Post Views: 35 Recently, in order to directly click the print button on the web page, I began to print the corresponding documents, analyzed several web controls, and finally decided to use the free version of JatoolSprinter. Among them, there is a problem with reyon under IE10. Obviously, there is only one page, but it has been judged that there…

👨‍💻 Personal Brand

Wang Shiqiang | PHP & Go Technical Consultant

15+ years of backend development experience specializing in system maintenance, architecture optimization, performance tuning, and Linux administration.

Technical blogger since 2013 with 1,000+ original articles.

Available for consulting, long-term maintenance, and remote collaboration.

👉 About Me & Contact

.env (14) 404 (13) add (17) Aliyun (19) Apache (13) Array (19) browser (14) Cache (13) CentOS (23) chrome (18) Client (11) command line (13) composer (42) composer.json (22) composer install (13) composer update (14) console (14) Container (25) curl (15) Database (11) database migration (16) delete (32) Docker (31) Dockerfile (15) ECS (12) environment variable (20) error (24) escape (12) Failed (13) file (16) filter (20) fopen (11) FORMAT (12) function (13) Git (27) GitHub (16) Gitlab (15) Go (34) Go 1.26 (12) GraphQL (24) GraphQL API (14) hosts (11) http (21) https (20) Installation (13) Interface (19) Jenkins (12) Jquery (13) json (24) Laravel (36) Laravel 6 (56) Laravel 9 (25) Lighthouse (17) Lighthouse 5 (14) Linux (15) Memory (11) Migrate (13) Migration (11) Module (17) MySQL (76) MySQL 5.7 (21) Nginx (45) Node.js (12) normalize.css (29) OKX (15) PHP (63) php.ini (24) PHP 7.1.12 (22) PHP 7.4 (26) phpmyadmin (15) PhpStorm (24) Polylang (24) postman (18) Query (17) queue (16) Rancher (24) Redis (38) Refactoring (12) require (12) response (13) RESTful (27) RESTful API (23) rules (12) setting (12) Shell (13) Shopify (19) Shopify CLI (12) SQL (24) String (15) TortoiseGit (15) Ubuntu (35) update (20) VPN (13) Windows 10 (46) WireGuard (22) WordPress (48) Wstunnel (11) Yii (40) Yii 2 (70) Yii 2.0 (51)

June 2026
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930