0
<script type="text/javascript">
var a = 0;
</script>
現在我有GWT:實例字段本地JS全球
public class AA implements EntryPoint {
public final int a =44;
}
哪能實例字段轉移到本地全局JavaScript變量,以便它可以從JavaScript方法可調用?
<script type="text/javascript">
var a = 0;
</script>
現在我有GWT:實例字段本地JS全球
public class AA implements EntryPoint {
public final int a =44;
}
哪能實例字段轉移到本地全局JavaScript變量,以便它可以從JavaScript方法可調用?
public native void init (Integer arg)/*-{
$wnd.a = arg;
}-*/;
http://www.emgarten.com/using-jsni-in-gwt.htm – 2010-11-02 04:36:54