1. 场景:
2. 实现:
{% extends 'base.html' %}
{% block head %}
<script>
function formSubmit() {
document.adduser.submit()
}
</script>
{% end %}
{% block body %}
<form action="http://www.baidu.com" method="post" enctype="application/x-www-form-urlencoded" name="adduser">
<input type="hidden" name="name" value="qqqqqq">
<input type="hidden" name="pass" value="123456">
<input type="hidden" name="repass" value="123456">
<a href="">
<img src="img/logo.png" onclick="formSubmit()" alt="">
</a>
</form>
{% end %}