秘银渲染 "background-image url"

mithril rendering "background-image url"

我对秘银有以下问题

当它是正确的 img 标签时,图像可以正常显示

`<img src="images/erp/C:%5CProgram%20Files%20(x86)%5CMYTEST%5Cbitmaps%5C10001.jpg"  class="scale">`

但是当设置为背景图像时,相同的图像根本不会渲染url

`background-image: url("images/erp/C:%5CProgram%20Files%20(x86)%5CMYTEST%5Cbitmaps%5C10001.jpg");`

基于此issue the cause is a bug in 将字符串C:\Tmp\a\field.png转换为"C:Tmpa\f ield.png"

这个javascript:

view: function (ctrl) {
 return [m("button", [m("img[src='C:\Tmp\a\field.png\']"),"btn img"]),
  m("div", {'style': { 'background-image' : 'url(\"field.png\")'}},"div a"),
  m("div", {'style': { 'background-image' : 'url(\"C:\Tmp\a\field.png\")'}},"div b")];
}

渲染到此 html

<button><img src="C:\Temp\mith\field.png">img inside a btn</button>
<div style="background-image: url("field.png");">no path</div>
<div style="background-image: url("C:Tmp\a\f ield.png");">with path</div>