摘要: 先将pos机设置为默认 控制面板->打印机和传真->右键->服务器属性 首先创建 ClassPrint 对象 using System; using System.Drawing; using System.Drawing.Printing; using System.IO; using Syste 阅读全文
posted @ 2017-05-04 14:41 Hao0 阅读(887) 评论(0) 推荐(0) 编辑
摘要: 1 判断数据库是否存在Sql代码 if exists (select * from sys.databases where name = ’数据库名’) drop database [数据库名] if exists (select * from sys.databases where name = 阅读全文
posted @ 2017-04-26 15:22 Hao0 阅读(488) 评论(0) 推荐(0) 编辑
摘要: --判断数据库是否有相关表 if exists (select 1 from sysobjects where id = object_id(' 表名 ') and type = ' U ' ); --判断数据库是否有相关字段 if exists (select 1 from syscolumns 阅读全文
posted @ 2017-04-26 15:16 Hao0 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 今天帮朋友看了下JSON解析结果············· eval解析JSON中的注意点 在JS中将JSON的字符串解析成JSON数据格式,一般有两种方式: 1.一种为使用eval()函数。 2. 使用Function对象来进行返回解析。 使用eval函数来解析,并且使用jquery的each方法 阅读全文
posted @ 2017-04-26 15:03 Hao0 阅读(772) 评论(0) 推荐(0) 编辑
摘要: 控制 MediaElement(播放、暂停、停止、音量和速度) WPF中对于多媒体的支持非常完整,一般都是通过MediaElement来实现的。 http://msdn.microsoft.com/zh-cn/library/ms748248.aspx 一个关键问题就是:MediaElement 的 阅读全文
posted @ 2017-04-25 18:08 Hao0 阅读(442) 评论(0) 推荐(0) 编辑
摘要: VIEW 阅读全文
posted @ 2017-04-19 18:04 Hao0 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 在做一些删除等的操作时,在跳转链接前,需要弹出一个确认框确认,避免误点。 方法一: <a href="http://www.baidu.com" onClick="return confirm('确定删除?');">[删除]</a> 方法一: <a href="http://www.baidu.co 阅读全文
posted @ 2017-04-19 17:14 Hao0 阅读(4260) 评论(0) 推荐(1) 编辑
摘要: //废话不说直接上代码$("#").click(function(){ $("#content-div label input[type='checkbox']").each(function(){ $(this).prop("checked",!$(this).is(":checked")); }); ... 阅读全文
posted @ 2017-04-19 10:46 Hao0 阅读(939) 评论(0) 推荐(0) 编辑
摘要: ConcurrentDictionary<Tkey,Tvalue> Model #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 // C:\Program Files (x 阅读全文
posted @ 2017-04-18 09:50 Hao0 阅读(704) 评论(0) 推荐(0) 编辑
摘要: javascript 获取iframe里页面中元素值的方法 IE方法:document.frames['myFrame'].document.getElementById('test').value; 火狐方法:document.getElementById('myFrame').contentWi 阅读全文
posted @ 2017-04-17 17:14 Hao0 阅读(2793) 评论(0) 推荐(0) 编辑