简体   繁体   English

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

[英]NPAPI plugin - To access array object from Javascript

I created a NPAPI plugin, but want to know which all methods in NPClass gets invoked in the below mentioned javascript code for line2 . 我创建了一个NPAPI插件,但想知道NPClass中的所有方法都在NPClass的line2的javascript代码中被调用。

Also I want to know the method to access array index in the plugin . 我也想知道插件中访问数组索引的方法。

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

It will call your GetProperty method; 它将调用您的GetProperty方法; the NPIdentifier will either be an IntIdentifier with the value of i or a normal StringIdentifier with the numeric string matching i . NPIdentifier要么是一个IntIdentifier用的值i或正常StringIdentifier与数字串匹配i

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM