由於我無法找到任何解決方案,我被XLSX固定到JSON轉換器。我試圖將我的conf.js中的XLSX轉換爲JSON。這是我的XLSX的樣子。 量角器中的XLSX到JSON轉換器。 XLSX到JSON默認轉換器不能正常工作
如果我使用XLSX來編輯JSON,這是它向我展示的方式。 [{"":"default","Project1":"smoke"},{"":"Specfile1.js","Project1":"Specfile1.js"},{"":"Specfile2.js","Project1":"Specfile2.js"},{"":"Specfile3.js","Project1":"Specfile3.js"},{"":"Specfile4.js","Project1":"Specfile4.js"},{"":"Specfile5.js","Project1":""},{"":"Specfile6.js","Project1":""},{"":"","Project1":"Project2"},{"":"default","Project1":"smoke"},{"":"Specfile1.js","Project1":"Specfile1.js"},{"":"Specfile2.js","Project1":"Specfile2.js"},{"":"Specfile3.js","Project1":"Specfile3.js"},{"":"Specfile4.js","Project1":"Specfile4.js"},{"":"Specfile5.js","Project1":""},{"":"Specfile6.js","Project1":""}]
我不知道我應該如何正確地格式化像
{ Project1: {smoke:Specfile1.js,Specfile2.js,Specfile3.js,Specfile4.js, default: Specfile1.js,Specfile2.js,Specfile3.js,Specfile4.js,Specfile5.js,Specfile6.js }, Project2: {smoke: ..., default: ..., sanity: ..... }