摘要: 在 config 的 <configuration> 节点内加入以下 类似信息 以下是以Newtonsoft.Json 为例子 <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembl 阅读全文
posted @ 2016-07-01 17:55 N1900 阅读(389) 评论(0) 推荐(0) 编辑
摘要: A.Html内容如下 B.Html内容如下 Error: 在testCtrl 中是无法使用$scope.textCtrl获取 testGrid ,是因为 ng-inclue会生成一个独立的子scope ,和controller上的scope独立开来 类似于js的原型链。 所以要在 testCtrl上的 $scope访问 A.Html的控件 则需要 像下面这样写 ... 阅读全文
posted @ 2016-06-02 09:24 N1900 阅读(461) 评论(0) 推荐(0) 编辑
摘要: 需要先 执行 mysqld --initialize 然后 mysqld --install 最后 net start mysql 即可启动服务 如果不执行第一步 则会报错 阅读全文
posted @ 2016-04-20 18:39 N1900 阅读(430) 评论(0) 推荐(0) 编辑
摘要: /** * Created by 1900 on 12/18/2015. */var plugins={ fs:require("fs"), gulp:require("gulp"), uglify:require("gulp-uglify"), connect :requi... 阅读全文
posted @ 2016-01-13 14:35 N1900 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 老代码: addsubview不显示uilabel-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{ UIView *view = [[UIView alloc] in... 阅读全文
posted @ 2016-01-09 23:55 N1900 阅读(948) 评论(0) 推荐(0) 编辑
摘要: public static List Swap(this List list, int index1,int index2) { if(index1=list.Count) { throw new Except... 阅读全文
posted @ 2015-12-14 17:47 N1900 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 项目里要实现一个input验证通过就切换到下一个input的功能当然用jq dom操作很简单 ,大家都懂,现在用 angular,mvc 数据模型控制分离,不想再dom操作怎么办以下方法 app.directive('focusDir',[ "$timeout","$parse" ,function... 阅读全文
posted @ 2015-12-05 15:06 N1900 阅读(2031) 评论(0) 推荐(0) 编辑
摘要: 原方法,使用一个confirm 点ok然后回调,结果 界面无法刷新,搜索了下 是因为$scope没有监视model,必须使用apply方法 $scope.SelectedRow=row; negAlert.confirm(function(){ ... 阅读全文
posted @ 2015-12-01 18:07 N1900 阅读(863) 评论(0) 推荐(0) 编辑
摘要: 症状: 绑定一个list radio button 老是只能绑定一行,纠结了很久 ,回家发现 原来是 name 用了同一个 ,坑啊,记录下 免得下次再犯。之前的代码 {{row.name}} ... 阅读全文
posted @ 2015-11-25 22:32 N1900 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 背景 : id数组 [1,2,3,4,45,7] 要拼接字符串‘1’,‘2’,‘3’,看了同事自己写了代码 string+=‘,’ 之类的 头大解决:string有静态函数 ,string.Join(",'",array)可以满足要求 首尾缺少的 符号 可以最后string.fromat(''{0}... 阅读全文
posted @ 2015-11-18 21:26 N1900 阅读(416) 评论(0) 推荐(0) 编辑