我想從地址導(dǎo)出,該地址是變量中的字符串。 import {device} from 'device.js' let buttonUrl; if(device.desktop){ buttonUrl = './components/Elements/Button/Button' } else if(device.mobile || device.tablet){ buttonUrl = './components/Elements/Button/ButtonMobile' } export { Button, } from buttonUrl我收到導(dǎo)出部分的錯誤。
如何從es6中的變量導(dǎo)出
達令說
2021-06-17 18:08:22