⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 global.java

📁 学习的一个好的例子,是一个购物的例子,相当不错!
💻 JAVA
字号:
import jasp.buildin.*;import jasp.vbs.*;public class Global extends ASPGlobal {    public void application_init() throws Exception {    }    public void session_init() throws Exception {    }    public Global() {     try {    } catch(Exception ex) { }    }    public void application_onstart() throws Exception {        Application.setItem("Count", 0);    }    public void session_onstart() throws Exception {        Application.lock();        Application.setItem("Count", Application.getItem("Count").add(new variant(1)));        Application.unlock();    }    public void session_onend() throws Exception {        Application.lock();        Application.setItem("Count", Application.getItem("Count").toDouble() - 1.0);        Application.unlock();    }    public void application_onend() throws Exception {    }} // end global.asa class 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -