javascript
yueyang3
这个作者很懒,什么都没留下…
展开
-
js取日期的前一天
[code="js"]/**************************************** * 取前一天的日期 * 参数格式:2014-06-02 * 结果格式:2014-06-01 ***************************************/function convertDate(beginTime){ var now = ne...原创 2014-06-18 14:34:23 · 104 阅读 · 0 评论 -
等待加载资源的时候显示转菊花
[code="html"] function universalPreloader(){ var pre = $("#universal-preloader>div"); //centering function jQuery.fn.center = function () { this.css("position...原创 2014-07-10 14:17:12 · 628 阅读 · 0 评论 -
js获取项目路径
[color=red]-- from network[/color][code="js"]function getRootPath(){ //获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jsp var curWwwPath=window.document.location.href; //获取主机...原创 2015-05-21 10:52:16 · 82 阅读 · 0 评论 -
书签中使用JS
[code="js"]书签中使用JS,写法大体如下(没有换行):javascript:(function(){var s = document.createElement_x('script'); s.type = 'text/javascript'; s.src = 'http://labs.microsofttranslator.com/bookmarklet/default.aspx...原创 2015-08-03 10:58:30 · 959 阅读 · 0 评论