省市县不刷页面js 完成html代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> new document </title>
</head>
<body><select id="s1"></select><select id="s2"></select><select id="s3"></select>
<script type="text/javascript">
<!--
function LianDong(arr, sel)
{
this.GetCnNameByValue = function(val)
{
for ( var j = 0; j < arr.length; j++)
{
if (arr[j][0] == val)
{
return arr[j][2];
}
}
return "";
}
this.GetValueByCnName = function(val)
{
for ( var j = 0; j < arr.length; j++)
{
if (arr[j][2] == val)
{
return arr[j][0];
}
}
return "";
}
var me = this;
this.$ = function(o)
{
return document.getElementById(o);
}
this.sub = function (i, pid)
{
for (var j=i+1; j<sel.length; j++)
{
me.$(sel[j]).length = 0;
me.$(sel[j]).options[0] = new Option("请选择", "");
}
fo
相关文档:
<html>
<head>
<title>text-font</title>
</head>
<body>
************************<font size="7" color="red">标题章节</font>*************************<br>
正常文本
<h1>一级标题</h1>
<h2 align=righ ......
如何有一个字符串是这样的形式str = "&bbbLAA";
想得到"L"的话可以这样去实现:
//sDataStr = "&bbbLAA";
//sLeftQuote = ""&bbb";
//sRightQuote = "&AA";
调用这个方法将得到L字段。
function abCutString( sDataStr, sLeftQuote, sRightQuote)
{
var sReturnVal = '';
var nStart ......
双引号:"或"
单引号:'或'(IE实体名无效)
&符号:&或&
<小于:<或<
>大于:>或>
空格: 或 
£英磅:£或£
¥元:¥或¥
¦分隔符:¦或& ......
最近项目中需要在页面中预览word文件,虽说word本身就可以在页面中打开,但是有两个弊端,1是可客户端必须安装word, 2是客户端的环境以及office版本有差异,会造成预览不稳定。在网上找了一下,发现poi可以把word装换成txt,但是格式都丢了,只有光秃秃的文本,又搜jacob, 网友们众说纷纭, 最后还是自己sourceforge上下载jaco ......