Common Methods and Differences of Insertion in DMO Nodes
1. Insert append() and appendTo() inside DOM
Dynamically created elements are not enough, they are only temporarily stored in memory, and eventually we need to put them into the page document and present them. So the question arises, how to put it on the document?
This involves a location relationship. It is common to place this newly created e ...
Posted by DeepakJ on Sun, 26 May 2019 11:41:44 -0700
Understanding Implementation Principles from jQuery - Part 1
We mainly understand some common methods in jQuery, including click (), show (), hide (), hover (), css (), etc.
attr(),toggle(),eq(),find(),index();
Step 1: Get the elements on the pagefunction VQuery(vArg) //Parameters can make fn, oArg (object), sArg (string), so setting vArg can be any of three parameters
{
//Elements are used to save ...
Posted by gtzpower on Sun, 26 May 2019 11:01:55 -0700
Implementation of Registration Mailbox Verification and Login Verification Code
Django Sends Mail
Modules need to be used
from django.core.mail import send_mail,send_mass_mail
SMTP is a mail server, each kind of mailbox SMTP server address is different, Baidu itself
For example, mailbox 163 is smtp.163.com
1. Adding configuration to settings
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.Django ...
Posted by TheRealPenguin on Sat, 25 May 2019 13:13:15 -0700
Date Time Range Selection Plugin: Summary of daterangepicker usage
Sharing Instructions:
The date and time range selection is used to filter data in the project; accurate to the day, month, hour and second of the year; initially, layui's time and date selection plug-in was used; but formatting errors were reported on the first click of IIE8; problems that have not been resolved for a long time, but were deter ...
Posted by jhenary on Sat, 25 May 2019 09:08:17 -0700
A Problem and Solution of Using FormData Object to Implement File Upload Function of Form in tp3.2.3
The html code for the form is as follows:
<form name="addForm" id="addForm" action="__SELF__" method="post" enctype="multipart/form-data">
Commodity logo: <input type="file" name="goods_logo"/>
...
<input type= "submit" value= "submit" onclick= "testAjax ();"/>
< ...
Posted by stephanie on Fri, 24 May 2019 14:07:45 -0700
Principle and implementation of jsonp
What is JSONP
First, mention the concept of JSON, a lightweight data transfer format that is widely used in current Web applications.Encoding and parsing data in JSON format is basically implemented in all major languages, so most of the front-end and back-end segregated architectures now transmit data in JSON format.
So what is JSONP?( ...
Posted by stiano on Mon, 20 May 2019 09:50:54 -0700
Ajax Principle and Packaging Explanation
Everyone uses Ajax every day. The jquery library encapsulates Ajax perfectly and very well. Let's take a look at its internal principle and manually encapsulate its own Ajax library. For more information on ajax packaging and data processing, see Shanghai Shangxue School< Ajax encapsulated by replace+Jq in Ajax>,<ajax+json data process ...
Posted by irishdreaming on Sun, 19 May 2019 19:09:42 -0700
Django - Cross Domain Request (jsonp)
Homology Policy
If both pages have the same protocol, port (if specified) and domain name, then both pages have the same source.
Example: Two Django demo s
demo1
url.py
url(r'^demo1/',demo1),
view.py
def demo1(request):
return HttpResponse("demo1")
demo2
url.py
url(r'demo2$',demo2),
view.py
def demo2(request ...
Posted by Barkord on Sun, 19 May 2019 17:53:41 -0700
Front-end form operation based on JQuery
Jquery's front-end form operation:
jquery provides a good way to encapsulate, and can save a lot of trouble in some basic operations. Among them, the data submission of form form is the most frequent and most common way of data exchange. Therefore, some problems need to be solved in the front-end processing of form form (data acquisition, form ...
Posted by uatec on Sun, 19 May 2019 06:47:52 -0700
The construction process of web project and the use of web pack 3.10.0
Note:
This blog mainly refers to this blogger's: http://www.jianshu.com/p/9423a7f04d31
But the version of webpack used by this blogger is 1.15.0. According to his instructions, there were errors in configuring webpack dev-server. There were many incompatible versions of plug-ins, so I changed to the latest version of ...
Posted by jcubie on Sat, 18 May 2019 19:40:32 -0700