template html(模板文件): 有如下一个form:from django import
formsclass UploadFileForm(forms.Form): title = forms.CharField(max_length=50)
file ...
分类:
其他好文 时间:
2014-05-19 11:45:23
阅读次数:
317
一、更改jdk默认编码为UTF-8,保证启动的JVM不会出现中文乱码问题
1、在编译的时候,如果我们没有用 -encoding
参数指定我们的JAVA源程序的编码格式,则javac.exe首先获得我们操作系统默认采用的编码格式。JDK首先获得操作系统的file.encoding参数(它保存的就是操....
分类:
系统相关 时间:
2014-05-19 08:38:25
阅读次数:
439
using System;using System.Collections.Generic;using
System.Collections.Specialized;using System.Linq;using System.Reflection;using
System.Web;using We...
分类:
Web程序 时间:
2014-05-18 19:06:49
阅读次数:
451
转自:http://baiying.blog.51cto.com/1068039/1319784html按钮有两种:和登录这两种在页面上看起来好像一样没什么区别,但是这两种是有区别的。1,如果在/hdlogin/login.action"
method="post">标签中,使用,要想提交form,...
分类:
Web程序 时间:
2014-05-18 18:58:22
阅读次数:
394
W3C规范对于脚本事件有两种处理方式,第一种为冒泡模型,第二种是事件捕获模型,前者为早期浏览器所支持的(也称DOM 0标准),后者为W3C规范推荐的方法(也称DMO 2标准).
其主要区别:
@1:事件捕获不依赖于特定的事件来处理属性
@2:你可以对任何对象的任何一种事件注册多个事件句柄函数
第一个javascript程序
#form{
b...
分类:
编程语言 时间:
2014-05-18 14:12:49
阅读次数:
234
注意:data-native-menu="false"
虽然具有渲染作用,但是无法进行js提交。
分类:
其他好文 时间:
2014-05-18 02:40:03
阅读次数:
317
一个form两个提交按钮,分别提交到两页面 一个form两个提交按钮,分别提交到两页面
分类:
其他好文 时间:
2014-05-18 00:46:03
阅读次数:
229
以下以 IE 代替 Internet Explorer,以 MF 代替 Mozzila
Firefox1. document.form.item 问题 (1)现有问题: 现有代码中存在许多
document.formName.item("itemName") 这样的语句,不能在 MF 下运行 (2)...
分类:
Web程序 时间:
2014-05-17 19:58:31
阅读次数:
449
1、安装gconf-editor yum list | grep conf-editoryum
install gconf-editor2、运行gconf-editor设置: apps ---> gedit-2 ---> preferences
----> encodingauto-detected...
分类:
其他好文 时间:
2014-05-17 18:18:56
阅读次数:
215