<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE> New Document </TITLE><META NAME="Generator" CONTENT="EditPlus"><META NAME="Author" CONTENT=""><META NAME="Keywords" CONTENT=""><META NAME="Description" CONTENT=""><script language="javascript">// Example: obj = find...
using System;using System.Data;using System.Drawing;using System.Data.SqlClient;using Excel;using Word;using System.IO;namespace Common{ /// <summary> /// 把数据导入到.doc、.txt、.xls文件中 /// </summary> public class Export { private const string DATAWORDPATH = @"C:\folder\doc\datadoc\"; private const st...
1. 长度限制<script>function test() {if(document.a.b.value.length>50){alert("不能超过50个字符!");document.a.b.focus();return false;}}</script><form. name=a nsubmit="return test()"><textarea name="b" cols="40" wrap="VIRTUAL" rows="6"></textarea><input type="submit" name="Submit" value="check"></form> 2. 只能是汉字...