This article is translated from: Uploading both data and files in one form using Ajax?
I'm using jQuery and Ajax for my forms to submit data and files but I'm not sure how to send both data and files in one form?
I currently do almost the same with both methods but the way in which the data is gat ...
Posted on Fri, 05 Jun 2020 20:32:14 -0700 by banzaimonkey
Magicodes.IE Csv import and export
This chapter mainly describes how to use Magicodes.IE.Csv to import and export Csv
1. Installation package Magicodes.IE.Csv
2. Export Csv using Magicodes.IE.Csv
Through the following code snippet we will export the content through the corresponding features ...
Posted on Thu, 14 May 2020 08:03:49 -0700 by llanitedave
Parent-child relationship div move-in move-out display problem
Delay the display of son and move out of hiding when box is requested
var box = document.getElementById('box');
var big = document.getElementById('son');
Posted on Wed, 06 May 2020 09:20:24 -0700 by killerofet
css picture horizontal center
1. Use margin: 0 auto to realize image horizontal center
<div style="margin:0 auto; text-align: center;"></div>
2. Use text align: Center
<div style="margin:0 auto; text-align: center;">
<p>Using margin: 0 auto to realize image horizontal center</p&g ...
Posted on Mon, 04 May 2020 15:42:35 -0700 by rulkster2
Recently, there are too many Alipay red envelopes on the Internet beyond count. But basically, it's limited to copying - opening Alipay - getting the three step process. Is there a more convenient, faster, violent and profiteering "one step" strategy?
If you don't believe it, click the link below to try.
A magic link
So wha ...
Posted on Mon, 04 May 2020 12:53:07 -0700 by Sh0t
This article is my notes when I study DOM in my MOOC class. Please point out the shortcomings.
Video link: Uncover DOM events
1. Event flow
2. Using event handlers
3. Different event types
Describes the order in which events are accepted from the page
Event bubbling flow (IE): the eve ...
Posted on Sun, 03 May 2020 20:15:14 -0700 by scottfossum
The HttpWebRequest and HttpWebResponse classes are the best choices for sending and receiving HTTP data. They support a range of useful properties.
Simulated Yilong travel website login
If you want to simulate login, first clear up the process
1. Capture relevant data through the F12 developer tool of 360 browser (IE, Firefox, etc.)
2. G ...
Posted on Sun, 03 May 2020 12:45:25 -0700 by 2705ap
btoa and atob are two functions of window object. btoa is binary to ascii, which is used to represent binary data with ascii code, i.e. Base64 encoding process, while atob is ascii to binary, which is used to parse ascii code into binary data. Let's see an example:
// Define the string
var string = 'Hello World!';
// Encode the String
var enc ...
Posted on Thu, 30 Apr 2020 14:29:21 -0700 by mrneilrobinson
Requirement: sometimes, when the content of the page is short, it can't support the height of the browser, but I hope the footer can be at the bottom of the window
There are three solutions provided here. Two ideas are the same and the structure is the same
First and second
Posted on Thu, 30 Apr 2020 11:55:22 -0700 by ledtear
I have been writing Qt programs for so many years, and I prefer to support multiple Qt versions, especially in favor of supporting any Qt version + any system + any compiler. This is not easy to say. First of all, you have to have a lot of versions of test environment, at least a dozen Qt environments, at least four or five operating ...
Posted on Wed, 22 Apr 2020 19:39:31 -0700 by davidohuf