摘要:
这样就可以了:xx=xx..replace(/(^\s*)|(\s*$)/g,"");另:去左空格replace(/(^\s*)/g, "");去右空格replace(/(\s*$)/g, "");中文全角空格不可以 阅读全文
posted @ 2012-08-18 17:04
时生
阅读(307)
评论(0)
推荐(0)
摘要:
showDiv($("#pop"));function showDiv(obj){ $(obj).show(); center(obj); $(window).scroll(function(){ center(obj); }); $(window).resize(function(){ center(obj); });}function center(obj){ var windowWidth = document.documentElement.clientWidth; var windowHeight = document.documentElement.client 阅读全文
posted @ 2012-08-18 09:35
时生
阅读(256)
评论(0)
推荐(0)