加载中
js FormData实现文件上传

1、取得form元素对象,将它作为参数传入FormData对象中,作为xhr的发送参数 <!DOCTYPE html> <html> <head>   <title>test4</title>   <meta charset="utf-8"> </head> <body> <form id="uploa...

2016/12/17 10:38
1K
js中网页的一些宽度和高度问题

//js中网页的一些宽度和高度问题 网页可见区域宽: document.body.clientWidth 网页可见区域高: document.body.clientHeight 网页可见区域宽: document.body.offsetWidth (包括边线的宽) 网...

js 压缩混淆工具 uglifyjs

一、安装node 二、安装npm 三、安装uglifyjs npm install uglify-js -g 四、使用方法 压缩: uglifyjs f.js > f.min.js 反压缩:uglifyjs -b f.min.js > f.b.js 选项: -b 或 --beautify - 输...

js编码和解码unicode函数

<script type="text/javascript"> function JS_encode(nativecode) {    nativecode = nativecode.split("");    var ascii = "";    for (var i = 0; i < nativecode.length;...

2016/08/05 19:14
1.7K
权限 Ralasafe 思考

1, 登录控制: 哪些页面需要登录后才能访问,登录用户名、密码验证,登录转向页面; 2, URL权限控制:哪些页面访问需要进行角色权限验证,怎样验证最简单有效,如何处理验证失败情况; 3,...

2015/05/11 10:40
873
jquery 点击弹窗之外的地方,关闭​弹窗

jquery 点击弹窗之外的地方,关闭弹窗 方法一: $(document).click(function(event){ var _con = $(".select3_box"); if(!_con.is(event.target) && (_con.has(event.target).length...

2015/01/03 15:40
3.8K
js 闭包

<html>   <head>   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">     <title>test</title>   </head>   <body>     <script>     /*     * 零零碎碎的,等明白了之后再整理     ...

2014/05/16 10:54
1.2K
beego mysql in查询

beego mysql in查询 ids := strings.Split(group.Rules, ",") var str string for i := 0; i < len(ids); i++ { str += ",?" } str = tools.Substr(str, 1, len(str)-1) var maps []orm....

2014/04/09 10:18
4.8K
dedecms联动类别查询

今天大象哥写了个联动类别的查询共享出来 //枚举查询 function get_enum($topvalue,$egroup = 'shoptype'){   global $dsql;//商品枚举   //一级枚举   $orderby = 'ORDER BY disorder ASC, ev...

2014/04/06 00:13
1.3K
ps、firewords在win78中无法直接拖入的问题解决方法

ps、firewords不能直接拖入图片解决方法 运行中输入regedit HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > Policies > System 找到EnableLUA将1改成0,然后重启,...

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部