如何在ES6中使用*作为+命名导出?

时间:2017-10-09 15:57:19

标签: ecmascript-6

我能做到:

Sub UnmergeAndFill()
    Dim ws As Worksheet
    For Each ws In ActiveWorkbook.Worksheets
        With Selection
           If .MergeCells Then
               .MergeCells = False
               .Selection.Cells(1, 1).Copy
               .ActiveSheet.Paste 'Or PasteSpecial xlPasteFormulasAndNumberFormats
           End If
        End With
    Next ws
End Sub

import * as Name from 'module';

如何结合2?

import { A, B } from 'module';

显示语法错误预期字符串文字

1 个答案:

答案 0 :(得分:1)

不幸的是你做不到。您只能将默认导入与命名空间导入或默认导入与命名导入相结合。但是,您可以使用两个声明:

$('#mySelect option:selected').text()