我正在使用 HTML , Javascript 和 AngularJS 撰写网络应用程序。对于我的用户界面,我尝试使用 LumX 。我尝试了 Angular Material ,但在IE上却太慢了。
但是,我很难简单地使用LumX提交表单。原因是我无法使按钮工作。 LumX网站明确指出:
" lx-button是一个指令,如果指定href或ng-href属性,它将创建一个link元素 否则,它会创建一个按钮元素。"
以下是我所拥有的:
Private Sub CompareBtn_Click()
Dim first_index As Integer
Dim last_index As Integer
Dim sheet1 As Worksheet
Dim sheet2 As Worksheet
Dim r1 As Integer
Dim r2 As Integer
Dim found As Boolean
Dim rng As Range
Set sheet1 = Worksheets("Source")
Set sheet2 = Worksheets("Minus")
first_index = 1
last_index = sheet2.UsedRange.Rows.Count
For r2 = first_index To last_index
found = False
For r1 = first_index To last_index
If sheet1.Cells(r1, 1) = sheet2.Cells(r2, 1) _
And _
sheet1.Cells(r1, 2) = sheet2.Cells(r2, 2) _
Then
found = True
Exit For
End If
Next r1
If Not found Then
sheet2.Cells(r2, 1).Interior.ColorIndex = 35
sheet2.Cells(r2, 2).Interior.ColorIndex = 35
End If
Next r2
End Sub
然后,在我的 functions.js 文件中,我有:
<lx-button id="add_button">Button</lx-button>
add()函数只是将该项添加到列表中。该功能正常,因为程序按正常按钮正常工作。只是当我使用 lx-button 标签时它停止工作。
感谢。