摘要:
例子为主 html主要代码 <div class="fl search">厂商:<select id="firms"><option>请选择</option></select> 品牌:<select id="brandmark"><option>请选择</option></select> 型号:<s 阅读全文
摘要:
很多时候我们上传文件点击取消后或我们制定了内容格式上传不符合,再次点击input="file"按钮时,选择的文件还是原来的文件,却又上传不。当时想在旁边多添加个按钮清除file里面的东西,但开发要求中不能多添加东西,所以当时就在处理file里面内容流程的最后添加一句话就行了,就是将input="fi 阅读全文
摘要:
先写个简单的例子,该过滤器是指定规定的字符串长度: html: <div ng-app="app" ng-controller="ctrl"> <p ng-repeat="text in texts> {{book | limitText:10}} </p></div> js: var app = 阅读全文