摘要: There is a compatible issue found during upgrading from .net 4.0 to .net 4.5. The application crashed with following error: This exception was thrown 阅读全文
posted @ 2017-03-21 10:03 liangzi4000 阅读(300) 评论(0) 推荐(0) 编辑
摘要: The error is related with *.pfx file that is used in ClickOnce based deployment. All ClickOnce apps must have their clickonce manifests digitally sign 阅读全文
posted @ 2017-03-20 10:50 liangzi4000 阅读(1363) 评论(0) 推荐(0) 编辑
摘要: Angular中使用$http.jsonp发送跨站请求的实践中,遇到了下面的一些问题: 1. 不是所有返回json格式的url都支持jsonp,服务器端需要支持从url中读取返回函数并用它封装json数据。 2. AngularJS v1.6.1中,url中不能包含callback这个参数,而是用j 阅读全文
posted @ 2017-02-09 16:49 liangzi4000 阅读(1866) 评论(0) 推荐(0) 编辑
摘要: There are many ways to compress a folder using powershell: Method 1: Using System.IO.Compression and System.IO.Compression.FileSystem This method requ 阅读全文
posted @ 2017-01-16 16:58 liangzi4000 阅读(257) 评论(0) 推荐(0) 编辑
摘要: The beforeunload event is fired when the window, the document and its resources are about to be unloaded. 目前该事件只有IE支持自定义消息,Chrome, Safari, Firefox都已不再 阅读全文
posted @ 2016-11-24 19:37 liangzi4000 阅读(329) 评论(0) 推荐(0) 编辑
摘要: Binding这个类包含以下几个常用的属性: ElementName: Gets or sets the name of the elements to use as the binding source object. [Default is null] Source: Gets or sets 阅读全文
posted @ 2016-11-16 18:04 liangzi4000 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Secure The secure option is a flag that can be set by the application server when sending a new cookie to the user within a HTTP Response. The purpose 阅读全文
posted @ 2016-11-02 13:19 liangzi4000 阅读(11036) 评论(0) 推荐(0) 编辑
摘要: Function在javascript里面可以实例化,也可以直接调用。 作为直接调用对象时,它会执行这个function并得到相应的返回值。 在这种情况下,不加return会返回undefined,return this返回window对象。 作为实例化对象时,它会执行下列操作: 在这种情况下,re 阅读全文
posted @ 2016-10-25 16:39 liangzi4000 阅读(1750) 评论(0) 推荐(0) 编辑
摘要: 以下是三种创建空对象的方法: 他们对Javascript来说是一样的,新创建的三个对象会继承object所有的属性和方法,所以emptyObj1.toString等于Object.prototype.toString。但是要注意,{}.toString是会报错的! 类似的还有空数组问题: 以上两行没 阅读全文
posted @ 2016-10-19 23:07 liangzi4000 阅读(33881) 评论(0) 推荐(0) 编辑
摘要: 执行时间:33526 执行时间:212 由此可见typeof的效率高出很多,这个在jQuery源代码也有所体现: 只有检测到对象是object或者function的时候,才会去调用Object.prototype.toString,否则直接调用typeof。 以下为typeof和Object.pro 阅读全文
posted @ 2016-09-01 10:48 liangzi4000 阅读(299) 评论(0) 推荐(0) 编辑