//引用单元uniguiapplication
UniSession.AddJS('alert(unigui调用了JS方法)');