一、js访问activex

VB:
--------------------------------
Public Property Let TxtVisible(ByVal New_TxtVisible As Boolean)
     Text1.Visible = New_TxtVisible
     PropertyChanged 'BlnSystemUser'
 End Property

Public Sub SetValue1()
  Text1.Text = "test zhanpeng"
End Sub
Public Sub SetValue2(str)
  Text1.Text = str
End Sub
----------------------------------

JS:
---------------------------------
document.getElementById("obj").TxtVisible = false;
document.getElementById("obj").SetValue1();
document.getElementById("obj").SetValue2(44);
---------------------------------

二、activex访问js.txt

VB:
------------------------
Private Sub Command2_Click()
UserControl.Parent.Script.test (3)
End Sub
--------------------------

js:
------------------------
function test(str){
 alert(str);
}
------------------------

相关文章:

  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-05
猜你喜欢
  • 2021-08-04
  • 2022-12-23
  • 2021-05-27
  • 2021-05-18
相关资源
相似解决方案