-
jqueryjquery实现表格table隐藏显示列
<!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> <me...
jquery / 2019-07-11
-
javascriptjs判断判断当前域名
if(location.toString().indexOf("abc.com") <= -1){ /*如果当前网址中没有abc.com*/ document.location.href="/b.htm"; /*跳转到b.htm*/ }else{ document.locati...
javascript / 2019-07-11
-
javascriptjs获取当前域名
<script language="javascript"> //获取域名 host = window.location.host; host2=document.domain; //获取页面完整地址 url = window.location.href; document.write("<br>host="+host...
javascript / 2019-07-11
-
javascript禁止表单粘贴的方法
有时候我们在设计表单的时候由于某种需要,可能要禁止 input 表单输入框粘贴,所以今天就教大家禁止input表单输入框粘贴的方法。 只需要在input文本输入框中加入"οnpaste="return false"属性即可,相关代码...
javascript / 2019-07-11
-
jqueryjquery获取与替换文本框内容
<script type="text/javascript"> $(document).ready(function(){ $("#输入框").hide(); //隐藏 $("#展示区").hide(); //隐藏 $("#展示按钮").click(function(){ if($("#...
jquery / 2019-07-11
-
jqueryjquery遍历被选中复选框的值
$("[name = Bton[]]:checkbox").each(function(i){ alert($(this).val()); })...
jquery / 2019-07-11
-
javascriptJS定时处理函数setTimeout用法
<script> setTimeout("alert('JS定时处理!')", 3000 ) </script>...
javascript / 2019-07-11
-
jqueryjquery创建新元素组与删除当前元素组
<script type="text/javascript"> $(document).ready(function(){ $("#add_guest").click(function(){ <span style="white-space:pre"> </span> $("#YK").append("<li >姓...
jquery / 2019-07-11
-
jquery对于jquery 新加载的元素绑定事件无效的解决方法
$(document).on('click','#新元素ID',function(){ //do something..... })...
jquery / 2019-07-11
-
csscss设置文字不换行,超过的部分用“...”代替
设置文字不换行,超过的部分用“...”代替 overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 210px; 注意:除width属性外,顺序不要颠倒哦! 1.white-space ① normal ...
css / 2019-07-11