11 2017 档案
摘要:var val1 = $("#idname").val(); alert("val1:"+$.trim(val1)+"***");//只去除两边空格
阅读全文
摘要:低 中 高 $(".target").click(function(){ //方法一 注意空格与非空格 var index = $('.titTab span.select').index(); //方法二 //var index = $('.titTab .select').index(); alert("index:...
阅读全文
摘要:str为要去除空格的字符串: 去除所有空格: str = str.replace(/\s+/g,""); 去除两头空格: str = str.replace(/^\s+|\s+$/g,""); 去除左空格: str=str.replace( /^\s*/, ''); 去除右空格: str=str.replace(/(\s*$)/g, "");
阅读全文
摘要:三中的使用方法的简单实例如下: 行内样式: <!doctype html> <html> <head> <meta charset="UTF-8"> <title>css行内样式</title> </head> <body> <div style="width:100px;height:100px;
阅读全文
浙公网安备 33010602011771号