昨晚fix了本博客一个剪贴复制的问题。 需求:希望在编辑博客时能够直接剪贴复制图片到文本框中,这样可以简单快捷的编写文章。 解决方法:是通过javascript来允许用户来粘贴图片到一个div中,然后再复制到文本框中。在读取event.clipboardData的时候chrome和Firefox出现了不同的行为。原因是firefox在某个版本后并不允许javascript访问剪贴板。 安全问题: 允许浏览器访问剪贴板有一定安全问题,正常浏览器可以设置。IE设置如下: ...
阅读全文廊坊:廊坊发展、华夏幸福、 荣盛发展 保定(含涿洲):恒天天鹅(行情 股吧 买卖点)、巨力索具、乐凯胶片(行情 股吧 买卖点)、宝硕股份、风帆股份(行情 股吧 买卖点)、天威保变、长城汽车(行情 股吧 买卖点)、凌云股份(行情 股吧 买卖点) 石家庄:建投能、博深工具(行情 股吧 买卖点)、常山股份(行情 股吧 买 ...
阅读全文cookie 是存储于访问者的计算机中的变量。每当同一台计算机通过浏览器请求某个页面时,就会发送这个 cookie。可以使用 JavaScript 来创建和取回 cookie 的值。这是变量序列化和反序列化的过程。 Cookie的格式(属性): cookieName=cookieValue;expires=expiresDate;path=URLpath;domain=siteDomain//cookie Cookie常用函数: 1 ...
阅读全文http://developer.yahoo.com/yui/dragdrop/ Drag and Drop API Document: http://yui.github.io/yui2/docs/yui_2.9.0_full/docs/module_dragdrop.html The following configuration properties are currently supported via the contructor ...
阅读全文Apache Common Logging(JCL)简介可以参考官网的用户手册。 官方User Guide文档入口: http://commons.apache.org/proper/commons-logging/guide.html JCL简介: Jakarta Commons Logging (JCL)提供的是一个日志(Log)接口(interface),同时兼顾轻量级和不依赖于具体的日志实现工具。它提供给中间件/日志工具开发者一个简单的日志操作抽象,允许程 ...
阅读全文ant官方文档:http://ant.apache.org/manual/index.html filter: Sets a token filter for this project, or reads multiple token filters from a specified file and sets these as filters. Token filters are used by all tasks that perform file-copying op ...
阅读全文call_user_func_array — 调用用户定义的函数,参数使用数组传递。Call a callback with an array of parameters call_user_func — 调用用户定义的函数,传递一个参数,且参数为非引用。Call the callback given by the first parameter create_function — 创建一个匿名函数。 Create ...
阅读全文html 的title attribute用来作为tooltip来显示提示。在win7上的IE浏览器上显示时,它的位置显示在文本的下方,而在win10上显示时却显示在文本的上方做提示。测试了IE11和edge都是同样的问题,不过在win10上使用其他浏览器如chrome,仍然能如以前的显示方法显示提示在文本下方。这种小变化都有可能以前我们产品的设计浏览器兼容性问题。如原先设计为当用户鼠标移到一个a链接时,除了显示tooltip提示信息外,还需要显示一个自定义的一个工具框,如在这个工具框中显示一个 ...
阅读全文下载ECLIPSE-PHP 使用ECLIPSE创建PHP PROJECT,带来全新的PHP PROJECT 架构理念 查询PHAR相关知识 http://www.ibm.com/developerworks/cn/opensource/os-php-5.3new4/ http://www.php.net/manual/zh/wrappers.phar.php Eclipse PHP 用eclipse开发php 参考文档: http://blog.csdn. ...
阅读全文className 规定元素的 class 属性。注意:该属性名不是 "class",因为 "class" 是 JavaScript 中的保留字。 类型:String。状态:可写。 currentStyle 这一特定于 IE 的属性应用于元素的所有 CSS 属性的级联组。它是 Window.getComputedStyle() 的仅用于 IE 的替代。 类型:String。状态:可写。 dir 规定元素的 dir ...
阅读全文如何定义metadata 值属性:PropertyTable Property用以描述一个结点的属性,如 Name API Name Description visible includeCharacters MaxLength Max System Length Order Required Available for xxx(Subscribe) Enable for xxx(Search Criteria) At ...
阅读全文shopt命令: 全写为shell option命令 顾名思义:shopt命令用于显示和设置shell中的行为选项,通过这些选项以增强shell易用性。shopt命令若不带任何参数选项,则可以显示所有可以设置的shell操作选项。 其语法: shopt 选项 参数 选项 -s:激活指定的shell行为选项; -u:关闭指定的shell行为选项。 参数 shell选项:指定要操作的shell选项。 例如bash shopt: ...
阅读全文Apache Subversion是一个功能强大的版本控制系统(version control system)。设计初衷是希望成为更好的CVS。 Apache Subversion有很多“代名词“,简写SVN。这些代名词实质上就是不同的第三方提供的build。如 Windows下的build有 CollabNet (supported and certified by CollabNet; requires registration) SlikSVN ( ...
阅读全文http://www.zhangxinxu.com/study/201503/css3-object-fit.html 这篇博客很好的演示了object-fit的各种设置。博主有很不错的前端笔记。 The object-fit property defines how an element responds to the height and width of its content box. It's intended for images, videos and ot ...
阅读全文win7(64bit) 下使用Excel2007(32bit) 连接 Oracle数据库遇到了兼容性问题。 在用EXCEL来连接数据库中的数据时,建立连接和建立查询时都出现了问题。之前可以,只是今年重装了系统,就有问题了。错误大体上有两个现象: 1,找不到Oracle ODBC Driver 2. 出现ODBC驱动程序不匹配的问题。 、 关键问题还是出现在了对64位windows的ODBC理解的不足。 1. 关于ORACLE ODBC Driv ...
阅读全文YAHOO.example.Data = { menu: { breakfasts: [ "donuts", "omelette", "pancakes", "yogurt" ], lunches: [ "burrito", "hamburg ...
阅读全文BTrace可以安全地动态跟踪java应用程序执行。通过hotswap技术,向运行中的java应用程序插入跟踪代码(Trace actions )。 BTrace三个概念: Probe Point Trace Actions or Actions Action Methods BTrace程序的限制: can not create new objects. can not create new arrays. can not throw e ...
阅读全文如何修改CKEditor的内容css?即在编辑模式下如何定义其css? 在ckeditor文件夹下找到contents.css,如果是使用config.contentsCss设置加载指定的css文件,那就找到对应的css文件然后编辑样式。 比如说,希望在编辑模式下默认的<p>都是首行缩进的,那就可以在contents.css文件中加入: p{ text-indent:2em; } Edit the contents.css file that ...
阅读全文jQuery.extend = jQuery.fn.extend = function() { var src, copyIsArray, copy, name, options, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = false; // Handle a deep copy situation if ( typeof target == ...
阅读全文https://www.djangoproject.com/ Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on ...
阅读全文