taginput ,complete使用笔记】的更多相关文章

页面用到自动完成功能及需要taginput控件去展示,查资料的过程中发现 有两个类似的jQuery类库,到现在我也没搞明白它们两个有啥关联,jquery.tagsinput.js和bootstrap-tagsinput.js,后者在github上有(https://github.com/bootstrap-tagsinput/bootstrap-tagsinput),官网地址:http://jquery-plugins.net/bootstrap-tags-input: 前者的用法 $(sele…
2015-05-26   628   Code-Tuning Techniques    ——Even though a particular technique generally represents poor coding practice, specific circumstances might make it the best one to use.    ——One key to writing effective loops is to minimize the work don…
2015-03-06   328   Unusual Data Types    ——You can carry this technique to extremes,putting all the variables in your program into one big,juicy variable and then passingit everywhere.Careful programmers avoid bundling data any more than is logically…
代码大全也读了好几个月了,一开始读中文版,到现在慢慢尝试着读原版,确实感受到了"每天进步一点点"的魅力.遗憾的是没有从一开始就做阅读记录,总有不能尽兴和思路不清之感.确实,就像项目需要版本控制系统,读书也需要时时记录变化.所以,今天新开一贴,作为自己的阅读记录之用. 初步的想法是记录读到哪里,有什么疑问,以及原文中精炼的表述. 2014-01-27    190   Chapter 8 : Defensive Programming 问题:JAVA的断言是如何实现的?如果要写一个自己的…
1. install > npm install -g angular-cli 2. create app > ng new first-app 3. build app > cd first-app > ng serve…
题意 给一棵 complete binary tree,数数看一共有多少个结点.做题链接 直观做法:递归 var countNodes = function(root) { if(root===null) return 0; return 1+countNodes(root.left)+countNodes(root.right); }; 老实说,一道难度为 medium 的题目,这么几秒钟的时间就做出来,我心中有一种不真实感. 所以,我看了一下 discuss 区其他人的解法,看是不是我自己想…
在这章里面,提到的隐喻,类同于比喻(建模)的方法的去理解软件开发. 隐喻的优点在于其可预期的效果能被所有人所理解.不必要的沟通和误解也因此大为减低,学习与教授更为快速,实际上,隐喻是对概念进行内在化和抽象的一种途径,它让人们更高的层面上思考问题,从而避免低层次的错误. -- Femando J.Corbato 如何使用软件终端饿隐喻? 用来提高对编程问题和编程过程的洞察力 用来帮助思考编程过程中的活动,想象出更好地做事情的方法 要点: 隐喻是启示而不是算法,因此它们往往有一点随意(sloppy)…
软件的构建的主要流程: 定义问题 ( Problem Definition) 需求分析 (Requirements Development) 规划构建 (construction planning) 软件架构 (software architecture), 或高层设计(high-level design) 详细设计 (detailed design) 编码与调试 (coding and debugging) 单元测试 (unit testing) 集成测试 (integration testi…
fix SamuraiCRM/engines/core/test/dummy/config/routes 修改如下 Rails.application.routes.draw do mount Samurai::Core::Engine => "/core" end SamuraiCRM/engines/core/test/dummy/config/application.rb 修改如下 require “samurai/core” SamuraiCRM/engines/core…
一直想着花时间学习下gradle,今天有空.入门一下.参考:极客学院gradle使用指南,官方文档:gradle-2.12/docs/userguide/installation.html,以及百度阅读的官方文档中文译本:gradle翻译 手下下载gradle的zip,然后根据极客学院的教程手动打一遍. 测试代码:https://github.com/chenxing12/l4gradle 笔记: Chapter 4. Using the Gradle Command-Line each tas…