随笔 - 177  文章 - 0 评论 - 29 阅读 - 67万
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

04 2017 档案
java websocket 简单的聊天室
摘要:1, 前端代码 登入页 -> login.html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>聊天室登入接口</title> <script type="text/javascript" src="JavaScript/j 阅读全文
posted @ 2017-04-16 18:21 被遗忘的优雅 阅读(831) 评论(0) 推荐(0) 编辑
java websocket 实现简单的前后端即时通信
摘要:1, 前端代码 HTML5 部分 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalab 阅读全文
posted @ 2017-04-16 00:33 被遗忘的优雅 阅读(16177) 评论(0) 推荐(1) 编辑
js 通过文件输入框读取文件为 base64 文件, 并借助 canvas 压缩 FileReader, files, drawImage
摘要:<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>JS文件上传 阅读全文
posted @ 2017-04-09 22:04 被遗忘的优雅 阅读(3195) 评论(0) 推荐(0) 编辑
js 使用 XMLHttpRequest 请求发送 formdata 对象,从而上传文件
摘要:<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>JS文件上传 阅读全文
posted @ 2017-04-09 17:45 被遗忘的优雅 阅读(6364) 评论(0) 推荐(1) 编辑
html5 canvas ( 创建图形对象 ) createImageData
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>canvas</title> <script type="text/javascript" src="../js/jQuery.js"></script> <style type= 阅读全文
posted @ 2017-04-08 23:25 被遗忘的优雅 阅读(2843) 评论(0) 推荐(0) 编辑
html5 canvas ( 图形的像素操作 ) getImageData, putImageData, ImgData.data
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>canvas</title> <script type="text/javascript" src="../js/jQuery.js"></script> <style type= 阅读全文
posted @ 2017-04-08 23:11 被遗忘的优雅 阅读(7556) 评论(0) 推荐(0) 编辑
java 文件 与 base64 之间的转化, 以及 web 实现 base64 上传文件
摘要:<1>文件与base64字符串之间的转化 package servlet_file_upload; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import sun.mis 阅读全文
posted @ 2017-04-04 23:41 被遗忘的优雅 阅读(14550) 评论(0) 推荐(0) 编辑
html5 canvas ( 图片绘制 转化为base64 ) drawImage,toDataURL
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>canvas</title> <script type="text/javascript" src="../js/jQuery.js"></script> <style type= 阅读全文
posted @ 2017-04-02 23:29 被遗忘的优雅 阅读(7007) 评论(0) 推荐(0) 编辑
html5 canvas ( 扩展context('2d') ) CanvasRenderingContext2D.prototype.你的方法名
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>canvas</title> <script type="text/javascript" src="../js/jQuery.js"></script> <style type= 阅读全文
posted @ 2017-04-02 00:16 被遗忘的优雅 阅读(1682) 评论(0) 推荐(0) 编辑
html5 canvas ( 事件交互, 点击事件为例 ) isPointInPath
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>canvas</title> <script type="text/javascript" src="../js/jQuery.js"></script> <style type= 阅读全文
posted @ 2017-04-02 00:05 被遗忘的优雅 阅读(30346) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示