[問題] APPLET的顯示問題
最近接觸applet,
想請問一下一個問題,
test.java:
public class test extends Applet{
String str = "";
public void paint(Graphics g){
String str = getParameter("msg");
g.drawString(str,20,30);
}
}
test.html:
<html>
<applet code = "test.class" width = "350" height = "100">
<param name = "msg" value = "test">
</applet>
</html>
想請教一下,
我在用網頁顯示時,
常常會顯示在前一筆顯示的資料,
(前一筆是指,我修改str內的值,
但有時會停在上次修改的內容,
要等一下再重新載入才會更新)
感覺像是暫存的問題,
不知道要如何解決這問題。thx
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 124.219.29.125
※ 編輯: BossPi 來自: 124.219.29.125 (10/22 16:04)
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):