我如何使用包含日语字符的文件路径来进行href
eCell.innerHTML = "<a href="C:\02_代理店買取数Test Allocation\Failed_test_Allocation_85_20170110144943.csv" download>Failed</a>"
显示'???'在acnchor标记的鼠标悬停时,在底部的UI浏览器状态中代替日文字符。
答案 0 :(得分:1)
eCell.innerHTML = "<a href="C:\02_代理店買取数Test Allocation\Failed_test_Allocation_85_20170110144943.csv" download>Failed</a>" //everything between second and third " is something which the broswer will try to interpret as an object or variable
eCell.innerHTML = "<a href=\"C:\02_代理店買取数Test Allocation\Failed_test_Allocation_85_20170110144943.csv\" download>Failed</a>" //variable is a string
&#13;