随笔分类 -  Angular JS

摘要:以项目代码为例 <div ng-repeat="m in filestemplateList" class="content"> <span ng-bind="TYPE_FILETEMPLATE[m.templateType]"></span> <div class="upload-content" 阅读全文
posted @ 2021-01-28 15:30 liuw_flexi 阅读(280) 评论(0) 推荐(0) 编辑
摘要:大概效果: Demo: <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title></title> <style media="screen"> *{ margin: 0; padding: 0; 阅读全文
posted @ 2021-01-05 16:30 liuw_flexi 阅读(361) 评论(0) 推荐(0) 编辑
摘要:配置热更新: 破解: 2019.2/3版本破解文件: https://github.com/nwgdegitHub/IDEA- 解压之后新建一个空项目,把文件拖进去,然后重启IDEA即可 阅读全文
posted @ 2019-12-23 16:45 liuw_flexi 阅读(1594) 评论(0) 推荐(0) 编辑
摘要:在angular中使用ng-repeat时数组中有重复元素,要用item in items track by $index,不然会报错 <div class="" ng-init="names=[1,2,3,4,5,5]"> <p>循环对象:</p> <ul> <li ng-repeat="x in 阅读全文
posted @ 2019-12-23 14:31 liuw_flexi 阅读(497) 评论(0) 推荐(0) 编辑
摘要:如果想知道当前遍历的下标,也就是数据源中的第几个,可以用$index <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title></title> <style media="screen"> .co 阅读全文
posted @ 2019-12-20 09:46 liuw_flexi 阅读(295) 评论(0) 推荐(0) 编辑
摘要:参考来自 https://www.cnblogs.com/zhoulin1234/p/9587955.html 方法1. 逻辑在后面的中括号里面 ng-class="{true : 'checker disabled',false : 'checker' }[条件表达式,成立就用true对应的类,不 阅读全文
posted @ 2019-12-04 11:17 liuw_flexi 阅读(3171) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示