1.templateUrl

.component("noData",{
templateUrl:"components/noData.html" // 注意相对路径是针对index.html的
})

2.图片路径

相对路径 相对于 index.html

<!-- 暂无数据 -->
<div class="no_data">
<!-- 本地相对路径 相对index.html -->
<img src="img/noData.png" />
<p>暂无数据</p>
</div> <style>
.no_data{
text-align: center; /*让div内部文字居中*/
width: 200px;
height: 160px;
margin: 170px auto 0px;
}
</style>

彩蛋:

jquery 多属性选择器写法

$("input[id='XX'][class='XXX']")

.

最新文章

  1. 【CodeVS 1288】埃及分数
  2. Ubuntu14.04+Beanstalkd1.9最佳实践
  3. ExtJs4 笔记(14) layout 布局
  4. 【Go入门教程8】总结(25个关键字)
  5. POJ(3468)
  6. 命令行的全文搜索工具--ack
  7. jquery判断radioButton是否被选中
  8. ningx配置ModSecurity重启出现兼容性问题:ModSecurity: Loaded PCRE do not match with compiled!的解决方法
  9. 苹果MAC中安装并搭建Android开发环境的详细步骤
  10. Python-memcached的基本使用
  11. linux配置LAMP
  12. Ibatis中sqlmap参数map中还需要套list的情况如何写?
  13. java附件上传下载磁盘版
  14. 获取鼠标点击相对于Canva位置的2种方法
  15. jumpserver 堡垒机环境搭建(图文详解)
  16. 使用TensorFlow实现DNN
  17. Spring重温(三)--Spring依赖注入(DI)
  18. Java的XML解析
  19. Spark安装部署(local和standalone模式)
  20. robotframework运行时后台报错UnicodeDecodeError

热门文章

  1. 【LeetCode】Reverse Integer(整数反转)
  2. web结对项目
  3. 【Luogu】P2155沙拉公主的困惑(数论)
  4. 本博客由CSDN迁移而来,以前的博文可能显示不正常
  5. Echarts学习总结(一)-----柱状图
  6. 对于quartz的控制台不断打印
  7. social-auth-app-django模块
  8. 外星人(bzoj 2749)
  9. APUE 学习笔记(四) 标准I/O库
  10. 【CF1023B】Pair of Toys(解方程)