摘要: eclipse /** * @Description 页面跳转* @param {String} title 页面名称* @param {String} url 链接地址* @param {String} anim 动画效果*/ function OpenWindow(title, url, anim){ uexWindow.open(title, "0", url, anim, "", "", "4", "400");}VSfunction A(title, url) { ///方法A /// 阅读全文
posted @ 2014-03-28 20:22 lan 阅读(676) 评论(0) 推荐(0) 编辑
摘要: NPOI是基于POI开发,是一种不需要Office插件既能操作Excel,Work等public class ExcelRender { /// /// 根据Excel列类型获取列的值 /// /// Excel列 /// private static string GetCellValue(ICell cell) { if (cell == null) return string.Empty; switch (... 阅读全文
posted @ 2014-03-24 10:23 lan 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 1.启动Ubuntu SDK,直接点击中间的“Create a new project”2.在弹出的新建对话框中,选择左边的“Ubuntu”,里面有个“simple UI”3.可以看到模板中自带的qml主文件4.讲解代码import Ubuntu.Components 0.1 这个是几乎所有的Ubuntu程序都必须添加的qml头文件,导入Ubuntu专门为qml制作的插件即可使用所有Ubuntu特色的UI组件MainView { // objectName for functional testing purposes (autopilot-qt5) object... 阅读全文
posted @ 2014-03-15 21:40 lan 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 看到别人的公众帐号发出来的微信文字可以自定义样式,然后从微信后台的编辑器来看,就只有短短的几个功能,但可以看出编辑器是使用百度的ueditor编辑器使用Chrome浏览器打开微信的内容编辑器,按F12,调出控制台,在控制台输入baidu.editor.getEditor("js_editor").setContent("测试文字") 内容就自己在别的编辑器中生成好就OK 阅读全文
posted @ 2014-03-04 11:53 lan 阅读(495) 评论(0) 推荐(0) 编辑
摘要: https://github.com/douglascrockford/JSON-js/* json2.js 2014-02-04 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This code should be minified before deployment. See http://javascript.crockford.com/jsmin.html USE YOUR OWN... 阅读全文
posted @ 2014-03-03 16:59 lan 阅读(411) 评论(0) 推荐(0) 编辑
摘要: Html 拍照 Js//这段代 主要是获取摄像头的视频流并显示在Video 签中 window.addEventListener("DOMContentLoaded", function () { var canvas = document.getElementById("canvas"), context = canvas.getContext("2d"), ... 阅读全文
posted @ 2014-03-03 08:51 lan 阅读(651) 评论(1) 推荐(0) 编辑
摘要: HTML代码 Js代码$(":file").on('change', function () { var file = this.files[0]; var url = webkitURL.createObjectURL(file); var img = new Image(); img.onload = function () { var width = img.width, height... 阅读全文
posted @ 2014-02-28 21:11 lan 阅读(313) 评论(0) 推荐(0) 编辑
摘要: var $ = function (obj) { if (!obj) return null; if (typeof (obj) === "object") { return new B(obj); } else if (typeof (obj) === "string") { if (obj.indexOf("#") === 0) { return new B(document.querySelector(obj)); } else { return new B(doc... 阅读全文
posted @ 2014-02-22 17:08 lan 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 大屏手机的时代,单手交互尤为重要,那什么的菜单才是最好的菜单,安卓4.0界面设计中,新增action bar的概念,那什么是action bar呢,如下图Action Bar分为3部分1.main action bar 2.top bar(可以忽略) 3.split action bar1和2都是在手机的上方,单手操作基本是够不到的,那3split action bar呢?虽然它是放在手机的最下面,但是正常手握姿势触碰到最下面的地方也是有点困难的,SildeMenu方面用户的操作,但是最上面的菜单还是不容易够到,Hold下拉悬停,完美解决上面够不到的问题, 阅读全文
posted @ 2013-11-23 11:19 lan 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 查看生成Qr码的源代码,发现一串二维数组 int[][] maxDataBitsArray = new int[][]{ new int[]{0, 152, 272, 440, 640, 864, 1088, 1248, 1552, 1856, 2192, 2592, 2960, 3424, 3688, 4184, 4712, 5176, 5768, 6360, 6888, 7456, 8048, 8752, 9392, 10208, 10960, 11744, 12248, 13048, 13880, 14744, 15640, 16568, 17528... 阅读全文
posted @ 2013-10-26 17:14 lan 阅读(820) 评论(0) 推荐(0) 编辑