06 2016 档案

摘要:命令行,进入项目路径后,运行 命令执行后,报如下错误 Installing npm packages...Error with start undefinedError Initializing app: There was an error with the spawned command: np 阅读全文
posted @ 2016-06-30 10:48 Viola_left 阅读(6399) 评论(2) 推荐(1)
摘要:想要实现限定文本框内只能输入15位的数字的效果。但是现在实现的情况是只能限定不能输入英文字母,还不能限制汉字的输入,从网上找到的资料看来,需使用正则表达式来判断。不建议使用依赖keycode的判断,因为粘贴、中文输入法、自动填表等都是不触发key事件的。 而且限定的length是15,却能输入17位 阅读全文
posted @ 2016-06-29 16:06 Viola_left 阅读(2072) 评论(0) 推荐(0)
摘要:文字只有一行,可以使用css实现: .column-p{ width:500px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; } 多行文字的情况下,则需要使用js判断字数截取 <div class="column"> < 阅读全文
posted @ 2016-06-07 17:18 Viola_left 阅读(435) 评论(0) 推荐(0)
摘要:自己测试ionic的模板项目cutePuppyPics时,按照https://github.com/driftyco/ionic/blob/2.0/CHANGELOG.md#angular-update-to-200-rc1 升级Angularjs版本后,运行cordova build androi 阅读全文
posted @ 2016-06-03 17:51 Viola_left 阅读(2522) 评论(0) 推荐(0)