11 2017 档案

摘要:function js_getDPI() { var arrDPI = new Array(); if (window.screen.deviceXDPI != undefined) { arrDPI[0] = window.screen.deviceXDPI; arrDPI[1] = window 阅读全文
posted @ 2017-11-29 20:17 tooy 阅读(218) 评论(0) 推荐(0)
摘要:/* ------ 处理 Spec 列输入事件 begin --------- */ var editor = table.datagrid('getEditor', { index: rowIndex, field: "Spec" }); var target = editor.target; $(target).unbind("keydow... 阅读全文
posted @ 2017-11-13 11:18 tooy 阅读(2814) 评论(0) 推荐(0)
摘要:TCP的三次握手(建立连接)和四次挥手(关闭连接) 参照: http://course.ccniit.com/CSTD/Linux/reference/files/018.PDF http://hi.baidu.com/raycomer/item/944d23d9b502d13be3108f61 建 阅读全文
posted @ 2017-11-10 15:32 tooy 阅读(176) 评论(0) 推荐(0)
摘要:原博文 什么是跨域? 跨域,指的是浏览器不能执行其他网站的脚本。它是由浏览器的同源策略造成的,是浏览器对javascript施加的安全限制。 所谓同源是指,域名,协议,端口均相同,不明白没关系,举个栗子: http://www.123.com/index.html 调用 http://www.123 阅读全文
posted @ 2017-11-09 14:14 tooy 阅读(540) 评论(0) 推荐(0)
摘要:图片上传在上篇博文中讲过。 这里主要是裁剪的实现,需要用到bitmapcutter组件。 jquery.bitmapcutter该插件由Jericho开发,它的主要作用是客户端裁图。 引入jquery库 引入jquery.bitmapcutter库及其相关样式 直接上代码: js 上传完成后的回调用 阅读全文
posted @ 2017-11-07 10:37 tooy 阅读(542) 评论(0) 推荐(0)
摘要:上传组件plupload学习 突然就明白了项目的上传文件是怎么回事了,防止以后遗忘,趁着热乎赶紧记下来。 页面html 引用的index.js 引用的upload.js 使用上传组件plupload,绑定触发文件选择对话框的DOM元素。 引用的 plugin/pluploadcom.js 实例化一个 阅读全文
posted @ 2017-11-03 11:05 tooy 阅读(2973) 评论(0) 推荐(0)