I want to send the value to the data- series attr( data-discount_id , response.discount_id) but I find that there is no way to do it. make sure the response.discount_id has a value is there any way to enter the value? ...
$.ajax({ type: "GET", url: "url.php", success: function(data){ } suppose I use this to play if I print out console.log (data), I can print my echo in url.php, but if I need to receive more than two respons...
I wrote an alert, browser in this callback function and played it twice. I am sure that the url request for this form has only been requested once. But this callback function was called twice, and I was puzzled. ...
ask how the rich text in layui is asynchronously valued. layui.use( layedit , function(){ let introduce = layui.layedit ; let content = introduce.build( introduce ,{ hideTool:[ face ], introduce.getContent(content); intro...
when the user logs in, the user uses jquery s $.ajax () request to send the username and password to the backend. There are two questions: 1. After sending the request, I open the console, and you can see the username and password transmitted in the ne...
the new project is developed in angular2, and some of the components want to be applied to the previous old project (jQuery). Is there any way? ...
how do I get the start and end indexes of the selected text in the current text? can now get the text, but can t get the index of the selected text in the current paragraph. Which god knows? ...
$lastGoodsgrid.on("keydown", "[colname= F_GoodsName ] > input", function(e) { if (e.keyCode == 13) { input } ...
closeProject:function (index) { $( .project-card ).eq(index).css({ height : 100px , }) console.log($( .project-card ).eq(index).css( height )) }, project:function (index) { $( .pro...
A page written by bootstrap: : : this is the background code: @PostMapping(value = "forgetPassword", produces = "application json;charset=utf-8") @ResponseBody public String forgetPassword(@RequestParam("email&quo...
the following html <div><i class= fa fa-plus >< i>< div> want to replace text content with something else, but do not use the $obj.html method. Because an unknown click event is bound under the I tag. I would like to ask th...
$( body ).on( change , .add-btn ,function(e){ var id = $( .admin-upload-inline ).length + 1; var iconLayout = $( <div class="admin-upload-inline add-btn pointer" id="icon-layout- +id+ "> ); var fileInp...
problem description formmultipleselect the environmental background of the problems and what methods you have tried js related codes Please paste the code text below (do not replace the code with pictures) $( - sharpmultiselect ) .change...
you can only enter numbers function NumberOnly(e, pnumber){ if (! ^ d+$ .test(pnumber)){ $(e).val( ^ d+ .exec($(e).val())); } } has been writing this for a long time: I can only enter numbers I use this function with onkeyup, but now I w...
I used an ajax multi-upload upload has been able to upload more $fileCount = count($_FILES[ icon ][ name ]); for ($i = 0; $i < $fileCount; $iPP) { $file = $_FILES[ icon ][ tmp_name ][$i]; $dest = .. .. images admin produ...
defines an onclick, that works in both Edge and chrome, but Firefox gg, just self-taught the front end of the web page, but also look forward to your advice, thank you! < i> < div> function searchToggle() { if(main.hasClass( search-ope...
there are several pieces of data, all of which can be edited. There is an error message after the first piece of data editing is illegal, but the error message left by the previous piece of data is displayed before it is edited when the second piece of d...
I used php + ajax to write an ordinary commodity upload system simply upload pictures + some text to the database just how do I write an automated test I can execute a series of upload systems I wrote at the press of a button? ? is there a way to do...
Project environment localhost:8080 process: log in to the callback interface and write it to the token environment with $.cookie (the value obtained by token ,). Take it with $.cookie ( token ) on another page, but it s always undefined. I check...
recently started echarts, a demand is shown in the picture, now confused is that it a curve is divided into two parts, the background to a time division point, and then this time point before and after the curve with different colors display, read th...
question: use html-webpack-plugin to inject js files into template files. If a.js needs to introduce b.js in head, how should html-webpack-plugin be configured if it needs to be introduced in body? A.js is a global script file. ...
the array is as follows [ { admin :0, del :6, download :0, move :16, rename :0, upload :0}, { admin :0, del :0, download :2, move :16, rename :0, upload :4}, { admin :0, del :0, download :2, move :16, rename :0, upl...
Thank you for opening a pwa, on the mobile phone, and the screen starts again, and the Manifest file takes effect. But opening it on the PC side has no effect. Doesn t Google already support pc? ...
php Wechat official account sends template messages that can t change the color. I don t know why 1. Template message content: 2: the content of the serialized template message is as follows: you can test it. Touser needs to be added separatel...
const webpack = require("webpack"); const path = require( path ); const glob = require( glob ); const CleanWebpackPlugin = require( clean-webpack-plugin ); dist const HtmlWebpackPlugin = require( html-webpack-plugin ); html const...