自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 收藏
  • 关注

转载 javascript extend

interface Date{ addHours(h:number); addMinutes(m:number); format(str):string}interface String{ trim():string; solrFormat():string;}interface Array<T>...

2017-09-06 15:52:00 154

转载 angular2 bootstrap modal

----html-------<div #ele class="modal fade " style="z-index: 9999" data-backdrop="false" data-show="true" > <div class="modal-dialog"> <div ...

2017-09-05 17:14:00 191

转载 angular 可信的html 指令

angular.module('app').filter('trustHtml', ($sce) => { return (html) => { if(typeof(html)=="object"){ return html; } return $sce.trustAsHtml(html||""); }}...

2017-04-01 18:39:00 117

转载 ionic npm安装报错 no such file ,解决办法

Install the latest version of NodeJS from their website (e.g. 6.X.X).Open the Node.js command prompt as administrator.Run: npm cache cleanRun: npm uninstall -g ionicRun: npm uninstall -...

2017-03-24 23:35:00 208

转载 angular浏览器滚动条滚动到指定element 触发事件

angular.module('app').directive('ScrollTrigger', () => { return { restrict: "A", link:function ($scope,$element,$attrs,$controller) { function debounce(fn, delay)...

2017-03-15 13:40:00 465

转载 防止短时间js 重复执行

function debounce(fn, delay) {// 持久化一个定时器 timer let timer = null; // 闭包函数可以访问 timer return function() { // 通过 'this' 和 'arguments' // 获得函数的作用域和参数 let context = t...

2017-03-13 23:40:00 390

转载 nodejs nodemailer 使用

index.jsconst nodemailer=require("nodemailer")let sendEmail=function () { var transporter = nodemailer.createTransport({ host: "smtp.qq.com", port: 465, sec...

2016-11-26 23:35:00 164

转载 js 复制到剪切板

function copyTextToClipboard(text) { var copyFrom = $('<textarea/>'); copyFrom.text(text); $('body').append(copyFrom); ...

2016-09-26 14:02:00 76

转载 div文本垂直居中(div text vertical aligan)

.box{width: 135px;height: 84px;display: block; overflow: hidden;}.container { background:darkcyan; width: 135px; height: 84px; display: table;}.container p {...

2016-07-20 21:48:00 141

转载 程序集里包含多个版本dll引用 ,强制低版本到制定版本dll引用

在 config 的<configuration> 节点内加入以下 类似信息以下是以Newtonsoft.Json 为例子<runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> ...

2016-07-01 17:55:00 454

转载 ng-include 上ng-controller 无法获取控件

A.Html内容如下<div> <div kendo-grid="testGrid" k-options="testOptions"> </div></div>B.Html内容如下 <ng-include id="dashboard-section1" ng-init="init(0)" ...

2016-06-02 09:24:00 146

转载 Mysql 5.7 报错 3534 错误

需要先 执行 mysqld--initialize然后 mysqld --install最后 net start mysql 即可启动服务如果不执行第一步 则会报错转载于:https://www.cnblogs.com/Zoes/p/5413858.html...

2016-04-20 18:39:00 220

转载 Gulp 项目简单构建,自动刷新页面

/** * Created by 1900 on 12/18/2015. */var plugins={ fs:require("fs"), gulp:require("gulp"), uglify:require("gulp-uglify"), connect :require('gulp-connect'), noti...

2016-01-13 14:35:00 110

转载 如何处理UIVIew addsubview 不显示subview

老代码: addsubview不显示uilabel-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{ UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0,0,tableView....

2016-01-09 23:55:00 507

转载 list 交换位置扩展

public static List<T> Swap<T>(this List<T> list, int index1,int index2) { if(index1<0||index1>=list.Count) { throw n...

2015-12-14 17:47:00 251

转载 angular 调用element的 onfocus onkeydown onblur等事件

项目里要实现一个input验证通过就切换到下一个input的功能当然用jq dom操作很简单 ,大家都懂,现在用 angular,mvc 数据模型控制分离,不想再dom操作怎么办以下方法 <textarea style="height: 73px;min-height: 73px;resize: none " type="text" ...

2015-12-05 15:06:00 319

转载 angular 神坑 ,回调函数无法被监视

原方法,使用一个confirm 点ok然后回调,结果 界面无法刷新,搜索了下 是因为$scope没有监视model,必须使用apply方法 $scope.SelectedRow=row; negAlert.confirm(function(){ delCell();//数据已经被删除 但是界面没有刷新 ...

2015-12-01 18:07:00 174

转载 Angular js Radio Button

症状: 绑定一个list radio button 老是只能绑定一行,纠结了很久 ,回家发现 原来是 name 用了同一个 ,坑啊,记录下 免得下次再犯。之前的代码 <ul> <li ng-repeat="row in list"> <span> {{row.nam...

2015-11-25 22:32:00 173

转载 C# id 字符串之类的拼接

背景 : id数组 [1,2,3,4,45,7] 要拼接字符串‘1’,‘2’,‘3’,看了同事自己写了代码 string+=‘,’ 之类的 头大解决:string有静态函数 ,string.Join(",'",array)可以满足要求 首尾缺少的 符号 可以最后string.fromat(''{0}'',xxx)解决, 总比写成 if(xxx!=null)...

2015-11-18 21:26:00 123

转载 WCF跨时区自动转换问题

背景:api端 用wcf做的 客户端是silverlight, 服务和消费 不是同一个时区状况:客户端调用返回对象有个字段是datetime ,返回的时间和数据库相差好几个小时,找了很久,最后把datetime字段变成string 在wcf端转为字符串 最终得到解决。转载于:https://www.cnblogs.com/Zoes/p/4869683.html...

2015-10-11 18:09:00 122

转载 未找到相应的构造函数

背景:项目使用silverlight做的 ,因为要对应多国语言,所以提示文字,显示label都是用的资源文件,问题:今天修改项目 ,需要 增加个string的资源, 改好后 保存,deubug 打开页面就报错了, 说未找到xxx.resx.cs 对应的构造函数, - - 当时就蒙了,编译通过了的 就是调试就报错,找了?解决:最后找了半天,打开类文件, 查看构造函数 被vs 自动...

2015-06-25 14:30:00 409

转载 android Eclipse there no select

点mainactivity类 右键 run as 进行 配置 就可运行转载于:https://www.cnblogs.com/Zoes/p/3724532.html

2014-05-12 23:39:00 239

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除