提交 91fc209e 编写于 作者: W wanganxp

完善image说明

上级 4b47ae18
...@@ -23,26 +23,26 @@ ...@@ -23,26 +23,26 @@
data: [ data: [
{ {
src: '/static/test-image/logo.png', src: '/static/test-image/logo.png',
description: '本地根路径' description: '本地路径:/static方式'
}, },
{ {
src: '../../../static/test-image/logo.png', src: '../../../static/test-image/logo.png',
description: '本地相对路径' description: '本地路径:../static/'
}, },
{ {
src: '../../../static/Test-Image/Logo.png', src: '../../../static/Test-Image/Logo.png',
description: '本地相对路径忽略大小写' description: '本地相对路径忽略大小写'
}, },
{ {
src: 'logo.png', //TODO src: 'logo.png',
description: '本地当前路径(暂不支持)' description: '非static目录无法访问'
}, },
{ {
// #ifdef APP-ANDROID // #ifdef APP-ANDROID
src: 'file:///storage/emulated/0/Android/data/io.dcloud.uniappx/apps/__UNI__4517034/www/static/test-image/logo.png', src: 'file:///storage/emulated/0/Android/data/io.dcloud.uniappx/apps/__UNI__4517034/www/static/test-image/logo.png',
// #endif // #endif
// TODO iOS还需再补路径 // TODO iOS还需再补路径
description: '本地绝对路径' description: '本地绝对路径file:///方式。需注意打包后包名appid匹配'
}, },
{ {
src: 'testerror.jpg', src: 'testerror.jpg',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册