fis3 icon indicating copy to clipboard operation
fis3 copied to clipboard

使用fis3打包后,图片名称变了,css中引用该图片的名称也变了,但是JS中如果使用了该图片,名称却没有变过来

Open git4dhk opened this issue 10 years ago • 2 comments

使用fis3打包后,图片名称变了,css中引用该图片的名称也变了,但是JS中如果使用了该图片,名称却没有变过来,请问如何解决呢

git4dhk avatar Dec 23 '15 09:12 git4dhk

用户文档》》定位资源》》在js中定位资源 说的有:

需要使用自带函数 __uri

源码:

  var img = __uri('images/logo.gif');

编译后

  var img = '/images/logo_74e5229.gif';

openks avatar Dec 24 '15 01:12 openks

@openks Thks very much!

git4dhk avatar Dec 24 '15 05:12 git4dhk