NPAPI插件-从Javascript访问数组对象

NPAPI插件-从Javascript访问数组对象,javascript,npapi,browser-plugin,Javascript,Npapi,Browser Plugin,我创建了一个NPAPI插件,但想知道NPClass中的哪些方法在下面提到的第2行javascript代码中被调用 我还想知道在插件中访问数组索引的方法 var tst=document.getElementById('test') var name1=tst[1] 它将调用您的GetProperty方法;NPIdentifier将是值为i的IntIdentifier,或者是值为i的正常StringIdentifier的数字字符串匹配i

我创建了一个
NPAPI
插件,但想知道
NPClass
中的哪些方法在下面提到的第2行javascript代码中被调用

我还想知道在插件中访问数组索引的方法

  • var tst=document.getElementById('test
    ')
  • var name1=tst[1]

  • 它将调用您的
    GetProperty
    方法;
    NPIdentifier
    将是值为
    i
    IntIdentifier
    ,或者是值为
    i
    的正常
    StringIdentifier
    的数字字符串匹配
    i