87,922
社区成员
发帖
与我相关
我的任务
分享
<html:text property="testDate" style="width: 40%" onclick="setday(this)" maxlength="10" onkeydown="javascript:return false;"/>
<script type="text/javascript" src="<html:rewrite page='/js/calendar.js'/>"></script>
function setday(tt)
{
alert(tt);
}
<input name="testDate" maxlength="10" value="" onclick="setday(this)" onkeydown="javascript:return false;" style="width: 40%;" type="text">
<script>
function setday(o)
{
alert(o.value)
}
</script>
<input name="testDate" maxlength="10" value="" onclick="setday(this)" onkeydown="javascript:return false;" style="width: 40%;" type="text">
<script type="text/javascript">
function handle() {
alert();
}
var ele = document.getElementById('test');
if(window.navigator.userAgent.indexOf("IE") == -1) {
ele.addEventListener('click', handle, true);
} else {
ele.onclick = handle;
}
</script>
<script type="text/javascript" src="<html:rewrite page='/js/calendar.js'/>"></script>
(function (){
alert("加载了!");
})();
<input name="testDate" id="testDate" maxlength="10" value="" onclick="setday('testDate')" onkeydown="javascript:return false;" style="width: 40%;" type="text"/>
<script>
function setday(testId)
{
alert("调用了");
alert(document.getElementById(testId).value);
}
</script>
function setday(tt)
{
alert(tt);
}