自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

kechwen的博客

涨涨小知识

  • 博客(12)
  • 资源 (5)
  • 收藏
  • 关注

原创 get与post区别

两种 HTTP 请求方法:GET 和 POST在客户机和服务器之间进行请求-响应时,两种最常被用到的方法是:GET 和 POST。GET - 从指定的资源请求数据。 POST - 向指定的资源提交要被处理的数据GET 方法请注意,查询字符串(名称/值对)是在 GET 请求的 URL 中发送的:/test/demo_form.asp?name1=value1&name2...

2018-10-29 12:20:18 144

原创 H5应用离线缓存

使用 HTML5,通过创建 cache manifest 文件,可以轻松地创建 web 应用的离线版本。HTML5 引入了应用程序缓存,这意味着 web 应用可进行缓存,并可在没有因特网连接时进行访问。应用程序缓存为应用带来三个优势:离线浏览 - 用户可在应用离线时使用它们 速度 - 已缓存资源加载得更快 减少服务器负载 - 浏览器将只从服务器下载更新过或更改过的资源。 浏览器支...

2018-10-29 12:16:01 737

转载 session,cookie,Storage的区别及应用场景

浏览器的缓存机制提供了可以将用户数据存储在客户端上的方式,可以利用cookie,session等跟服务端进行数据交互。一、cookie和sessioncookie和session都是用来跟踪浏览器用户身份的会话方式。区别:1、保持状态:cookie保存在浏览器端,session保存在服务器端2、使用方式:(1)cookie机制:如果不在浏览器中设置过期时间,cookie被保...

2018-08-26 10:16:26 602

转载 彻底弄懂HTTP缓存机制及原理

前言Http 缓存机制作为 web 性能优化的重要手段,对于从事 Web 开发的同学们来说,应该是知识体系库中的一个基础环节,同时对于有志成为前端架构师的同学来说是必备的知识技能。但是对于很多前端同学来说,仅仅只是知道浏览器会对请求的静态文件进行缓存,但是为什么被缓存,缓存是怎样生效的,却并不是很清楚。在此,我会尝试用简单明了的文字,像大家系统的介绍HTTP缓存机制,期望对各位正确的理解前...

2018-08-26 10:09:02 106

原创 call和apply函数

call方法:语法:call([thisObj[,arg1[, arg2[, [,.argN]]]]])定义:调用一个对象的一个方法,以另一个对象替换当前对象。说明:call 方法可以用来代替另一个对象调用一个方法。call 方法可将一个函数的对象上下文从初始的上下文改变为由 thisObj 指定的新对象。如果没有提供 thisObj 参数,那么 Global 对象被用作 thisObj。ap...

2018-08-06 22:24:43 196

原创 DOMContentLoaded

DOM文档加载流程:(1) 解析HTML结构。(2) 加载外部脚本和样式表文件。(3) 解析并执行脚本代码。(4) 构造HTML DOM模型。// DOMContentLoaded 相当于jQuery中的ready(5) 加载图片等外部文件。(6) 页面加载完毕。// load MDN解析(DOMContentLoaded ):当初始的 HTML 文档被完全加载和解析完成之后,DOMConte...

2018-08-06 22:13:06 2318

原创 自执行匿名函数和立即调用表达式

自执行匿名函数(Self-executing anonymous function)和立即执行的函数表达式(Immediately-Invoked Function Expressio)区别// 这是一个自执行的函数,函数内部执行自身,递归function foo() { foo(); }// 这是一个自执行的匿名函数,因为没有标示名称// 必须使用arguments.callee属性来执行自...

2018-08-05 16:49:56 563

原创 JavaScript变量声明var、let、const

         变量声明            //var定义变量 无论其  实际声明位置在何处,都会被视为声明于所在函数的顶部,如果            //声明不在任意函数内部,则视为在全局作用域的顶部。            console.log(a);//输出 :undefinded   只声明  未定义            var a = 1;            co...

2018-08-02 14:15:04 139

原创 javascript 全局函数

decodeURI(String)  对encodeURI()编码过的URI进行解码。 decodeURIComponent(String)对encodeURIComponent()编码过的URI进行解码。 encodeURI(String)字符串某些字符将被十六进制的转义序列进行替换。 该方法不会对 ASCII 字母和数字进行编码,也不会对这些 ASCII 标点符号进行编码: - _ . ...

2018-08-01 22:22:00 3414

原创 Random()、Math.random()、Math.round()函数

1.Random()、Math.random()、Math.round()函数的区别;1.Random()、Math.random()、Math.round()函数的区别;1.Random()、Math.random()、Math.round()函数的区别;1)Random():创建一个新的随机数生成器。此构造方法将随机数生成器的种子设置为某个值,该值与此构造方法的所有其他调用所用的值完全不同。 ...

2018-04-01 12:28:08 4655

原创 JVM使用哪种字符表示?

    在Java(其中主要包括在JVM中、内存中、在代码里声明的每一个char、String类型的变量中。)中字符只以一种形式存在,那就是Unicode,不选择任何特定的编码,直接使用它们在字符集中的编号,这是统一的唯一的方法。    在JVM内部,统一使用Unicode表示,当着字符从JVM内部移动到外部时(即保存为文件系统中的一个文件内容时),就进行了编码转换,使用了具体的编码方案。因此也可...

2018-03-15 17:20:50 1657

原创 java中关于ClassLoader的知识

1.ClassLoader基本概念    与C或者C++编写的程序不同,Java程序并不是一个可执行文件,而是由许多独立的类文件组成,每一个文件对应一个java类。此外,这些类文件并非全部装入内存而是根据需要逐渐载入。ClassLoader是JVM实现的一部分,ClassLoader包括bootstrap classloader(启动类加载器),ClassLoader在JVM运行的时候加载ja...

2018-03-15 17:05:27 380

jQuery鼠标悬停效果

jQuery鼠标悬停不同文字显示不同背景图片banner动画

2017-08-15

并行算法设计与性能优化 刘志文

并行算法设计 性能优化 刘志文

2017-06-22

拖动查看大图

当显示 图片的div长度和宽度小于图片的大小时,可以拖动图片查看,以达到查看全图的效果。

2014-10-11

Jquery 文件上传组件

# jQuery File Upload Plugin ## Demo [Demo File Upload](http://blueimp.github.io/jQuery-File-Upload/) ## Description File Upload widget with multiple file selection, drag&drop support, progress bars, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads and client-side image resizing. Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads. ## Setup * [How to setup the plugin on your website](https://github.com/blueimp/jQuery-File-Upload/wiki/Setup) * [How to use only the basic plugin (minimal setup guide).](https://github.com/blueimp/jQuery-File-Upload/wiki/Basic-plugin) ## Support * **[Support Forum](https://groups.google.com/d/forum/jquery-fileupload)** **Support requests** and **general discussions** about the File Upload plugin can be posted to the official [Support Forum](https://groups.google.com/d/forum/jquery-fileupload). If your question is not directly related to the File Upload plugin, you might have a better chance to get a reply by posting to [Stack Overflow](http://stackoverflow.com/questions/tagged/blueimp+jquery+file-upload). * Bugs and Feature requests **Bugs** and **Feature requests** can be reported using the [issues tracker](https://github.com/blueimp/jQuery-File-Upload/issues). Please read the [issue guidelines](https://github.com/blueimp/jQuery-File-Upload/blob/master/CONTRIBUTING.md) before posting. ## Features * **Multiple file upload:** Allows to select multiple files at once and upload them simultaneously. * **Drag & Drop support:** Allows to upload files by dragging them from your desktop or filemanager and dropping them on your browser window. * **Upload progress bar:** Shows a progress bar indicating the upload progress for individual files and for all uploads combined. * **Cancelable uploads:** Individual file uploads can be canceled to stop the upload progress. * **Resumable uploads:** Aborted uploads can be resumed with browsers supporting the Blob API. * **Chunked uploads:** Large files can be uploaded in smaller chunks with browsers supporting the Blob API. * **Client-side image resizing:** Images can be automatically resized on client-side with browsers supporting the required JS APIs. * **Preview images, audio and video:** A preview of image, audio and video files can be displayed before uploading with browsers supporting the required APIs. * **No browser plugins (e.g. Adobe Flash) required:** The implementation is based on open standards like HTML5 and JavaScript and requires no additional browser plugins. * **Graceful fallback for legacy browsers:** Uploads files via XMLHttpRequests if supported and uses iframes as fallback for legacy browsers. * **HTML file upload form fallback:** Allows progressive enhancement by using a standard HTML file upload form as widget element. * **Cross-site file uploads:** Supports uploading files to a different domain with cross-site XMLHttpRequests or iframe redirects. * **Multiple plugin instances:** Allows to use multiple plugin instances on the same webpage. * **Customizable and extensible:** Provides an API to set individual options and define callBack methods for various upload events. * **Multipart and file contents stream uploads:** Files can be uploaded as standard "multipart/form-data" or file contents stream (HTTP PUT file upload). * **Compatible with any server-side application platform:** Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads. ## Requirements ### Mandatory requirements * [jQuery](http://jquery.com/) v. 1.6+ * [jQuery UI widget factory](http://api.jqueryui.com/jQuery.widget/) v. 1.9+ (included) * [jQuery Iframe Transport plugin](https://github.com/blueimp/jQuery-File-Upload/blob/master/js/jquery.iframe-transport.js) (included) The jQuery UI widget factory is a requirement for the basic File Upload plugin, but very lightweight without any other dependencies from the jQuery UI suite. The jQuery Iframe Transport is required for [browsers without XHR file upload support](https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-support). ### Optional requirements * [JavaScript Templates engine](https://github.com/blueimp/JavaScript-Templates) v. 2.5.3+ * [JavaScript Load Image library](https://github.com/blueimp/JavaScript-Load-Image) v. 1.11.0+ * [JavaScript Canvas to Blob polyfill](https://github.com/blueimp/JavaScript-Canvas-to-Blob) v. 2.1.0+ * [blueimp Gallery](https://github.com/blueimp/Gallery) v. 2.12.0+ * [Bootstrap CSS framework](http://getbootstrap.com/) v. 3.0.0+ * [Glyphicons](http://glyphicons.com/) The JavaScript Templates engine is used to render the selected and uploaded files for the Basic Plus UI and jQuery UI versions. The JavaScript Load Image library and JavaScript Canvas to Blob polyfill are required for the image previews and resizing functionality. The blueimp Gallery is used to display the uploaded images in a lightbox. The user interface of all versions except the jQuery UI version is built with Twitter's [Bootstrap](http://getbootstrap.com/) framework and icons from [Glyphicons](http://glyphicons.com/). ### Cross-domain requirements [Cross-domain File Uploads](https://github.com/blueimp/jQuery-File-Upload/wiki/Cross-domain-uploads) using the [Iframe Transport plugin](https://github.com/blueimp/jQuery-File-Upload/blob/master/js/jquery.iframe-transport.js) require a redirect back to the origin server to retrieve the upload results. The [example implementation](https://github.com/blueimp/jQuery-File-Upload/blob/master/js/main.js) makes use of [result.html](https://github.com/blueimp/jQuery-File-Upload/blob/master/cors/result.html) as a static redirect page for the origin server. The repository also includes the [jQuery XDomainRequest Transport plugin](https://github.com/blueimp/jQuery-File-Upload/blob/master/js/cors/jquery.xdr-transport.js), which enables limited cross-domain AJAX requests in Microsoft Internet Explorer 8 and 9 (IE 10 supports cross-domain XHR requests). The XDomainRequest object allows GET and POST requests only and doesn't support file uploads. It is used on the [Demo](http://blueimp.github.io/jQuery-File-Upload/) to delete uploaded files from the cross-domain demo file upload service. ## Browsers ### Desktop browsers The File Upload plugin is regularly tested with the latest browser versions and supports the following minimal versions: * Google Chrome * Apple Safari 4.0+ * Mozilla Firefox 3.0+ * Opera 11.0+ * Microsoft Internet Explorer 6.0+ ### Mobile browsers The File Upload plugin has been tested with and supports the following mobile browsers: * Apple Safari on iOS 6.0+ * Google Chrome on iOS 6.0+ * Google Chrome on Android 4.0+ * Default Browser on Android 2.3+ * Opera Mobile 12.0+ ### Supported features For a detailed overview of the features supported by each browser version please have a look at the [Extended browser support information](https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-support). ## License Released under the [MIT license](http://www.opensource.org/licenses/MIT). ## Donations jQuery File Upload is free software, but you can donate to support the developer, Sebastian Tschan: Flattr: [![Flattr](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/thing/286433/jQuery-File-Upload-Plugin) PayPal: [![PayPal](https://www.paypalobjects.com/WEBSCR-640-20110429-1/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PYWYSYP77KL54)

2014-04-25

Linux安装ActiveMQ.doc

ActiveMQ是一款流行的Message服务器,在Windows开发环境下,一般可以直接运行命令行,或者在Spring中以嵌入式启动。在生产环境中,ActiveMQ需要在Linux上部署。

2014-01-02

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除