A terminal, comprising a memory and a processor, the memory stores a computer executable instruction, wherein when the computer executable instruction is executed by the processor, the processor is caused to perform following steps of:
- receiving an operation on a network application;
- calling a first interface of a JS layer according to the operation;
- parsing the first interface and acquiring an object corresponding to the first interface;
- transmitting a corresponding signal through the object and executing a slot function associated with the signal;
- and
- calling a second interface of a plug-in layer through the slot function and calling a hardware module corresponding to the second interface to perform the operation.