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