摘要: 阅读全文
posted @ 2020-10-15 09:52 好吧的啊 阅读(627) 评论(0) 推荐(0) 编辑
摘要: 转发:https://www.cnblogs.com/therunningfish/p/6106553.html 命令行报bash:.....:command not found的解决办法(几乎所有命令) 命令行输入命令执行后报“bash:....:command not found”这是由于系统P 阅读全文
posted @ 2020-07-20 21:34 好吧的啊 阅读(4367) 评论(0) 推荐(0) 编辑
摘要: Referenced file contains errors (http://Java.sun.com/xml/ns/j2ee/web-app_2_5.xsd). For more information, right click on the message in the Problems Vi 阅读全文
posted @ 2017-07-25 10:36 好吧的啊 阅读(2535) 评论(0) 推荐(0) 编辑
摘要: 从表面上没啥区别,当你访问这个类时,public int A{get { return a; }set { a = value; }}只能通过类.A而public int a { get; set; }通过类.a即可public string a { get; set; }和公有字段没多大区别了,没 阅读全文
posted @ 2017-07-14 10:13 好吧的啊 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 使用ef 表关联主外键,查询的时候并没有include 查询出外联表,ef会延迟加载外联表,底层方法返回后DbContext释放,导致此错误信息。 1.可以自建立model 然后toList(); 2.using(DbContext db=new DbContext()){ //加入 db.Conf 阅读全文
posted @ 2017-07-08 18:09 好吧的啊 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 后台收不到值。 解决办法: 设置jQuery.ajax的tradional属性 阅读全文
posted @ 2016-12-27 18:01 好吧的啊 阅读(1746) 评论(0) 推荐(1) 编辑
摘要: //移除首部和尾部 public static String replaceStr(String str) { Pattern pattern = Pattern.compile("^,+|,+$"); Matcher matcher = pattern.matcher(str); return matcher.replaceAll(""); } //只移除尾部 publ... 阅读全文
posted @ 2016-12-02 11:01 好吧的啊 阅读(1174) 评论(0) 推荐(0) 编辑
摘要: 坑一:奇葩需求 首先需要解决的一个问题如下: Activity A 以startActivityForResult()方法启动了Activity B,然后Activity B可以启动Activity C,Activity C可以启动Activity D。需要在B、C和D都可以通过setResult( 阅读全文
posted @ 2016-11-15 17:32 好吧的啊 阅读(701) 评论(0) 推荐(0) 编辑
摘要: "^\\d+$" //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$" //正整数 "^((-\\d+)|(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数 "^-?\\d+$" //整数 "^\\d+(\\.\\d+)?$ 阅读全文
posted @ 2016-10-22 16:52 好吧的啊 阅读(67080) 评论(0) 推荐(0) 编辑
摘要: public string Process(string inputText) { bool escaped = false; bool inquotes = false; int column = 0; int indentation = 0; Stack<int> indentations = 阅读全文
posted @ 2016-06-27 17:27 好吧的啊 阅读(381) 评论(0) 推荐(0) 编辑