将线程启动模式设置为 sta 单线程 简介 STA: Single-Thread Apartment, 中文叫单线程套间。就是在COM库初始化的时候创建一个内存结构,然后让它和调用CoInitialize的线程相关联。这个内存结构针对每个线程都会有一个。支持STA的COM对象只能在创建它的线程里被使 ...
分类:
其他好文 时间:
2017-11-01 12:03:40
阅读次数:
281
一、捕获异常 1、当程序出错时,不会展示bug信息给用户,而是提供一个友好的提示后,继续执行程序 2、如下,实现除法,当分母为0时,捕获并打印出异常信息;Exception可以捕获任何异常 >>> div(1,0)异常为 division by zero 也可以指定异常为ZeroDivisionEr ...
分类:
编程语言 时间:
2017-10-31 22:23:26
阅读次数:
293
默认认为你手中已经有abp-zero项目,当前4.6.0 angularJS切换到jquery 运行项目,初始化是跳转到~/App/common/views/layout/layout.cshtml,使用的angularJS 想使用jquery版本,需要修改 Web\Controllers\Appl ...
分类:
其他好文 时间:
2017-10-30 18:17:50
阅读次数:
229
移动端无法复制:使用clipboard.js碰到的一个小问题 直接看下面的代码:在移动端访问,点击,能正常复制。 <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name= ...
分类:
移动开发 时间:
2017-10-30 14:40:22
阅读次数:
399
VS2013新增的Browser Link功能虽然“强大”,但我并不需要。 但默认是开启的,会在页面中自动添加如下的代码,真是烦人! <!-- Visual Studio Browser Link --> <script type="application/json" id="__browserLi ...
分类:
其他好文 时间:
2017-10-30 14:16:11
阅读次数:
173
283. Move Zeroes Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. ...
分类:
其他好文 时间:
2017-10-29 19:38:54
阅读次数:
201
Given a 2D grid, each cell is either a wall 2, an house 1or empty 0 (the number zero, one, two), find a place to build a post office so that the sum o ...
分类:
其他好文 时间:
2017-10-29 15:11:51
阅读次数:
193
Given a 2D grid, each cell is either an house 1 or empty 0 (the number zero, one), find the place to build a post office, the distance that post offic ...
分类:
其他好文 时间:
2017-10-29 13:49:23
阅读次数:
140
这是台湾一家报社的报导…在AlphaGoZero热潮下的<AI思维+人类设计思维>在科技界有AI思维(AIThinking),在设计界有设计思维(DesignThinking)。两个看似不太相关的两种思维,高焕堂老师却把两者联结起来,并且在台湾的铭传大学开创了一个新课程,引导新一代的学生们具备更..
分类:
其他好文 时间:
2017-10-29 11:06:01
阅读次数:
87
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. 一题目: Given an ar ...
分类:
其他好文 时间:
2017-10-28 17:36:13
阅读次数:
160