好好爱自己!

上一页 1 ··· 86 87 88 89 90 91 92 93 94 ··· 179 下一页
摘要: 早上同事问我个问题,angular 的表单验证有没有啥第三方库可以用? 这个问题,我想了下,之前我做的表单验证好像也没用到第三方的库来验证,直接用angular 内置的 directive 就可以搞定了。ng-minlength, ng-pattern ,ng-maxlength .. xxForm 阅读全文
posted @ 2018-07-23 14:55 立志做一个好的程序员 阅读(246) 评论(0) 推荐(0)
摘要: 一、多线程定义: 所谓的多线程,multithreading。有多线程能力的计算机因有硬件支持而能够在同一时间执行多于一个线程,进而提升整体处理性能。具有这种能力的系统包括对称多处理机、多核心处理器以及芯片级多处理(Chip-level multithreading)或同时多线程(Simultane 阅读全文
posted @ 2018-07-23 13:21 立志做一个好的程序员 阅读(896) 评论(0) 推荐(0)
摘要: 所谓的递归函数调用,就是自己调用自己的函数。 With this, functionHolder(3); would output 3 2 1 0. Let's say I did the following: Then functionHolder(3); would give Stop coun 阅读全文
posted @ 2018-07-20 15:58 立志做一个好的程序员 阅读(327) 评论(0) 推荐(0)
摘要: 参考: https://groups.google.com/forum/#!topic/golang-nuts/oawcWAhO4Ow Hi, Nan Xiao <xiaona...@gmail.com> writes: > (1) GOPATH="/root/go"; > (2) There is 阅读全文
posted @ 2018-07-20 15:48 立志做一个好的程序员 阅读(474) 评论(0) 推荐(0)
摘要: 有些问题,我以前都是似懂非懂,没有去弄个究竟!!!!! 这个习惯非常不好,搞得有些东西看似懂了,又不能百分之百说自己懂了,可能下次就弄不出来了,这样是不可取的。 不能有这种做事的风格。 就像写go的代码的时候, 要引用第三方库的时候, go get github.com/go-redis/redis 阅读全文
posted @ 2018-07-20 10:50 立志做一个好的程序员 阅读(8354) 评论(1) 推荐(0)
摘要: 原文: https://golang.org/doc/code.html#PackagePaths 如果demo目录下有两个文件 main.go 和mian2.go的话,main.go 和main2.go文件中的package 定义的名字要是同一个 不同的话,是会报错的。 main2.go main 阅读全文
posted @ 2018-07-20 09:06 立志做一个好的程序员 阅读(3449) 评论(0) 推荐(0)
摘要: Nginx调用远程php-fpm 前后端分离的网站,要在异地部署多套网页的时候,这种nginx配置调用远程php-fpm的方式,不错。可以提高网页的相应速度。 原文: https://www.cnblogs.com/feiyafeiblog/p/6938515.html 在Nginx服务器的情况下, 阅读全文
posted @ 2018-07-16 13:47 立志做一个好的程序员 阅读(347) 评论(0) 推荐(0)
摘要: How to get parent pid from a given children pid? I know I can mannully check it under /proc, I am wonder if there is a smart/better way to achieve thi 阅读全文
posted @ 2018-07-13 09:01 立志做一个好的程序员 阅读(267) 评论(0) 推荐(0)
摘要: 原文:http://davidcai.github.io/blog/posts/router-dynamic-templates/ ui-router : templateProvider vs template Router: Dynamic Templates Sat Aug 15, 2015 阅读全文
posted @ 2018-07-12 09:23 立志做一个好的程序员 阅读(329) 评论(0) 推荐(0)
摘要: design patterns 结合书本和这个网站的这个系列的文章来看: https://www.tutorialspoint.com/design_pattern/builder_pattern.htm Builder pattern builds a complex object using s 阅读全文
posted @ 2018-07-09 22:05 立志做一个好的程序员 阅读(481) 评论(0) 推荐(0)
上一页 1 ··· 86 87 88 89 90 91 92 93 94 ··· 179 下一页

不断学习创作,与自己快乐相处