文档很仔细,但熟悉要慢慢来~~ from django.shortcuts import render from contact.forms import ContactForm from django.http import HttpResponseRedirect from django.core.mail import send_mail def contactview(request): if request.method == 'POST': form = ContactForm(re…
function pdf(){ //一个html里面可能存在多个form,所以document.form[0]指的是第一个form,document.form[1]返回就是第二个form,如果没有第二个form,则返回undefined //就相当于:document.getElementsByTagName(form)[0] form = document.getElementsByTagName("form")[0]; with (form) { va…