$ 就相当于个字母a或bfunction a(id){
return document.getElementById(id);
}function $(id){
return document.getElementById(id);
} $("id").value=document.getElementById("id").value=a("id").value
return document.getElementById(id);
}function $(id){
return document.getElementById(id);
} $("id").value=document.getElementById("id").value=a("id").value
解决方案 »
- jQuery UI中,dragable的start的时候如果屏蔽单击事件
- 如何获取未知高度页面滚动条的位置?
- js获取隐藏控件的坐标
- 请教一个多选框效果的实现
- 关于javascript的回车换行问题
- firefox中如何把enter键转化为tab键?
- 在js里添加radio标签怎样给标签设置name属性???
- 求用javascrip 模仿手动选中网页上一个table,然后copy,再粘贴到excel里的代码?
- setTimeout在最后一次点击才使用
- spark资源分配
- JS菜单中在DIV用innerHTML写入li菜单项,为何当鼠标移出每个li时就会触发div的onmouseout事件?
- 请问这个正则表达式对吗?
怎么每天都有人问这个简单的问题呢
function $(id)
{
return document.getElementById(id);
}
有点故弄玄虚的感觉.呵呵.但已经是不成文的规则了.
$ 匹配输入字符串的结束位置。如果设置了RegExp 对象的 Multiline 属性,$ 也匹配 '\n' 或 '\r' 之前的位置。 字符:
var $; $就是字符,可以用作变量、函数指针、对象