// 对Date的扩展,将 Date 转化为指定格式的String   // 月(M).日(d).小时(h).分(m).秒(s).季度(q) 可以用 1-2 个占位符,   // 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)   // 例子:   // (new Date()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423   // (new Date()).Fo…
SuperDiamond在JAVA项目中的三种应用方法实践总结 1.直接读取如下: @Test public static void test_simple(){ PropertiesConfiguration config = new PropertiesConfiguration("127.0.0.1", 8283, "Soft-1.0", "development"); System.out.println(config.getString…
1.由dataset生成 代码如下 复制代码 public void CreateExcel(DataSet ds,string typeid,string FileName)    {    HttpResponse resp;    resp = Page.Response;    resp.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");    resp.AppendHeader("Content…
链接:http://blog.csdn.net/yangyunfeizj/article/details/7082001    作者:GoatYangYang 公司让负责qt界面开发,但是接触qt又不久,现将在项目中遇到的一些问题汇总下,一为了避免自己忘记,二希望能帮助到他人. 1.在程序关闭窗口时,显示提示窗口: qt中有很多信号和相应的槽函数,上述问题需要拦截关闭窗口信息QWidget::close(),QWidget::closeEvent( QCloseEvent * event )重写…
假如有个OC类OCViewController : UIViewController类里有两个方法 //swift调用oc或c的混编是比较常用的,反过来的调用很少.这里只写了swift调用oc和c的方式.//OC函数声明- (void)testOC;//C函数声明void testc(); 实现:void testc(){  printf("testc.....................");} -(void)testOC{  NSLog(@"\ntestOC.....…
~Apple   web项目中各种路径的获取 1.可以在servlet的init方法里 String path = getServletContext().getRealPath("/"); 这将获取web项目的全路径 例如 :E:\eclipseM9\workspace\tree\ tree是我web项目的根目录 2.你也可以随时在任意的class里调用 this.getClass().getClassLoader().getResource("/").getPa…
1.安装相关依赖(采用的webpack) npm install ecahrts --save npm install ngx-echarts --save 2.angular.json 配置echarts路径 "scripts": [ "node_modules/echarts/dist/echarts.min.js", "node_modules/echarts/map/js/china.js", "node_modules/ech…
在项目中  总是会用到类文件引入的操作,在此简单总结下: 方法一: 使用  include,require,include_once,require_once. 其中:*_once  once意为曾经一次,可理解为在执行引入前确认是否曾经(或者已经有了一次)引入过,如果已经引入则不会再次引入,否则引入文件:   require没有返回值,如果执行失败则报错fatal error并中断脚本的执行;include 有返回值,如果出现错误 则报出警告 warning且脚本继续执行. 方法二: 使用 _…
1.JS方法 <script type="text/javascript"> funcation cc(parameter1,parameter2,parameter3,parameter4){ alert(parameter1,parameter2,parameter3,parameter4); } </script> 2.<a>标签 <a href='javascript:void(0)' onclick=\"cc('"…
如下: 拼接的html: " onclick=\"valDocName2('"+JSON.stringify(doc).replace(new RegExp("\"","g"), "AAABBBCCCDDD")+"')\" " + js方法: function valDocName2(doc) { console.dir(doc); var aa = doc.replace(n…