各种投票系统貌似都是这样的,可是应该怎么实现呢,各位大神求救啊!
解决方案 »
- 请教高手jQuery怎么取得本地语言 比如:zh-CN
- 问个简单问题,都来看看呀
- js 如何判断字符是全角还是半角
- el表达式调用js中变量的问题
- javascrpt 里怎么动态生成网页代码?
- 求助-如何判断对象名为某一字符串!
- javascrip语言如何将一个字符型数据转换成日期型数据?日期型数据可以实现data1=data1+1吗?
- 请问,如何触发这个function aaa(),要求不能用<body onkeypress="aaa()">形式!!
- 如何用javascript调用浏览器中的保存方法?
- javascript中怎样给二维数组赋值?
- 谁帮忙写个循环好不?
- 在页面加了一个繁简转换代码,但是与页面其他JS代码冲突怎么办
<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>
<input type="text" id="t" />
<input type="button" value="click me" id="btn" />
<div id="nr">
<p>1111111111111</p>
</div>
<script>
document.getElementById('btn').onclick = function(){
var value = document.getElementById('t').value;
var p = document.createElement('p');
p.innerHTML = value;
document.getElementById('nr').appendChild(p);
};
</script>
</body></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>
<input type="text" id="t" />
<input type="button" value="click me" id="btn" />
<div id="nr">
<p>1111111111111</p>
<p>2222222222222</p>
</div>
<script>
document.getElementById('btn').onclick = function(){
var value = document.getElementById('t').value;
var p = document.createElement('p');
p.innerHTML = value;
document.getElementById('nr').appendChild(p);
};
</script>
</body></html>
这样意思?