[Javascript] Using dll (dynamic library) in javascript / Javascript 使用动态库

How could I link dll in javascript? In the scripting manual, it says the javascript is implemented by Duktape. And I check the official documentation of Duktape, there is a way to create dll library, and link it to javascript by function “require()”. However, the function is undefined when I try to call it. So I just want to ask how to use functions from dll by javascript. Is it ban by developers?
请问应该怎么在javascript连接dll库?在官方的脚本帮助里面写道JavaScript是由Duktape实现的。然后我在Duktape找到了连接dll的方法,通过"require()"函数。但是当我尝试在脚本中调用该函数是却提示无定义。所以我想问问应该如何在JavaScript连接dll库,还是说这是被开发者有意禁止。