javascript中带有参数的java方法. [英] java method with parameter in javascript.

查看:82
本文介绍了javascript中带有参数的java方法.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

FacadeGUIcontroller:在jsp中导入的类.

此代码不接受变量作为其参数

hi all.

FacadeGUIcontroller : class that imported in jsp.

this code doesn''t accept variable as it''s parameter

function runmlp() {
    <% FacadeGUIcontroller.printk(document.getElementById( 'txtneuron').value); %>
}



但是这段代码可以正常工作.



But this code is working correctly.

<% FacadeGUIcontroller.printk("myname"); %>



请指导我.



Please guide me.

推荐答案

方法runmlp是javascript方法,这里的Java在哪里?
the method runmlp is javascript method, where is java exist here ?


尝试:
function runmlp() {
    <% FacadeGUIcontroller.printk(document.getElementById("txtneuron").value); %>
}


这篇关于javascript中带有参数的java方法.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆