摘要 |
Disclosed are a router adaptation method and device, and a terminal device, relating to the technical field of communications, the main purpose being to automatically, rapidly and accurately obtain relevant information of a router function page. The main method of the present invention comprises: identifying a router to be adapted, and obtaining model information of the router to be adapted; according to the model information, obtaining an adaptation script of the router to be adapted, the adaptation script comprising a function interface of each function of the router, the function interfaces being formed via abstraction and packaging of page elements of each function page; using an application program to call a corresponding function interface in the adaptation script to obtain relevant information of a corresponding function of the router, and returning the relevant information to a calling layer as a return value. The present invention is mainly used in the process of obtaining relevant function information of a router. |