
前端
文章平均质量分 50
蜗蜗奶糖
这个作者很懒,什么都没留下…
展开
-
bower 出现 retry Request to https://registry.bower.io/packages/xxx failed with ECONNRESET
引用github issue上国外网友的回答:If it's any help, I'm facing the same problem in the same conditions (cntlm to bypass corporate proxy). I used bower-canary as@satazorsuggested. Didn't work until I had the following in my .bowerrc如果有任何帮助,我在相同的条件下面临同样的问题(cntlm ..转载 2021-08-25 15:59:21 · 1673 阅读 · 0 评论 -
js 获取主机名函数
function getRootPath() { //获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jsp var curWwwPath = window.document.location.href; //获取主机地址之后的目录,如: uimcardprj/share/m...转载 2018-12-04 14:50:13 · 1604 阅读 · 0 评论 -
h5检测微信手机端
function isWeixin() { var ua = window.navigator.userAgent.toLowerCase(); if (ua.match(/MicroMessenger/i) == 'micromessenger') { return 1; } else { ...转载 2018-12-04 15:10:51 · 508 阅读 · 0 评论 -
js 通用表单提交
<form name='SearchForm' id="form" id='SearchForm' method='POST' action="__ROOT__/admin.php/User/xiaofeiorder"> <input type="text" name = "phone" value="{$phone}" class="bu-in转载 2018-12-06 13:43:58 · 212 阅读 · 0 评论 -
jquery 模拟手动点击链接代码
html 文件如下: <a href="http://www.baidu.com" id='alipaybtn'>jquery点我</a> jquery 代码如下:var goPay = '<span id="goPay"> <span>';//给A标签中的文字添加一个能被jQuery捕获的元素$('#alipaybtn')....转载 2018-12-06 16:45:37 · 1164 阅读 · 0 评论 -
jquery选择器之radio 和id
$(":radio#1").attr("checked");为了提高效率如下例子 <td class='ui-field-contain'><input type='text' name='actMetric' id='actMetric' data-inline='true'></td> <td class='ui-fi...原创 2014-09-17 20:42:38 · 967 阅读 · 0 评论 -
js刷新当前页面
<a href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>原创 2019-02-17 09:17:59 · 899 阅读 · 0 评论