摘要: 1 //下载文件 2 //data 文件链接(http://baidu.com/111.jpg) 3 //filename 文件名称(111.jpg) 4 var saveFile = function (data, filename) { 5 var save_link = document.createElementNS('http://ww... 阅读全文
posted @ 2016-10-27 12:08 z_hj 阅读(252) 评论(0) 推荐(0) 编辑
摘要: /* * Class:WaterImage * Use for add a water Image to the picture both words and image * 2007.07.23 create the file * * http://www.freeatom.com/ 欢迎您的来访 阅读全文
posted @ 2016-10-26 20:42 z_hj 阅读(516) 评论(0) 推荐(0) 编辑
摘要: 解决方案: 【工具】 >【选项】 >【设计器】 >【表设计器和数据库设计器】 >去掉【阻止保存要求重新创建表的更改】的勾选 阅读全文
posted @ 2016-10-23 10:01 z_hj 阅读(210) 评论(0) 推荐(0) 编辑
摘要: truncate table 表名 阅读全文
posted @ 2016-10-23 09:20 z_hj 阅读(3157) 评论(0) 推荐(0) 编辑
摘要: _investmentRepository.Table.Where(t => t.CustomerId == customerId && t.InvestmentStatus == tempStatus).Sum(t =>t.Amount); 查询结果存在NULL值,在尝试将它转换成System.I 阅读全文
posted @ 2016-10-18 13:09 z_hj 阅读(1917) 评论(0) 推荐(0) 编辑
摘要: <input type="checkbox" checked="checked" id="clause"/> if ($("#clause").is(':checked')) 阅读全文
posted @ 2016-10-17 18:20 z_hj 阅读(186) 评论(0) 推荐(0) 编辑
摘要: var result = (from a in result join b in _customerInvestmentRepository.Table on a.CustomerInvestmentId equals b.Id where b.InvestmentStatus == investm 阅读全文
posted @ 2016-10-15 17:04 z_hj 阅读(1825) 评论(0) 推荐(0) 编辑
摘要: <select id="selector"></select> 1、设置value为pxx的项选中 $("#selector").val("xxx"); 2、设置text为pxx的项选中 $("#selector").find("option[text='xxx']").attr("selected 阅读全文
posted @ 2016-10-07 15:54 z_hj 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1.阻塞调用(读取完文件再执行后面的操作)var fs = require("fs");var data = fs.readFileSync('/fs.txt');console.log(data.toString());console.log("程序执行结束!");输出结果:“文件内容”“程序执行... 阅读全文
posted @ 2015-11-13 13:38 z_hj 阅读(728) 评论(0) 推荐(0) 编辑
摘要: 1、 var a =1>2||true; 代表如果左边为true则返回左边,否则返回右边。 2、 var a=1>2&&true; 如果左边为true则返回右边,否则返回左边。 阅读全文
posted @ 2015-09-06 22:26 z_hj 阅读(148) 评论(0) 推荐(0) 编辑