javascript - 在文本框中插入 getValue + PhpRunner + Javascript OnLoad 事件
问题描述
我有一个关于 javascript onload 事件的简单代码:
var ctrlCodigo_referencia = Runner.getControl(pageid, 'Codigo_referencia');
var ctrlNave = Runner.getControl(pageid, 'Nave');
我有以下内容:
// Test
ctrlNave.on('change', function(e){
if (this.getValue()!== ''){
alert(this.getValue()); //show popup with the value selected in the combobox
//ctrlCodigo_referencia.getValue('this');
ctrlCodigo_referencia.getStringValue();
}}); //that is a want to insert in textbox ctrlCodigo_referencia
// Test
解决方案
我发现。
ctrlNave.on('change', function(e){
if (this.getValue()!== ''){
alert(this.getValue());
ctrlCodigo_referencia.setValue(this.getValue()) ;
谢谢大家
推荐阅读
- r - r 数据表变音符号和带 := 的引号
- spring-boot - Corda springboot集成中的Gradle错误
- sql - 如何将BD中的小数保留到水晶报告中?
- php - Laravel 4.2:强制 URL 呈现为 HTTP 或 HTTPS
- python - 将多封电子邮件写入文本文件 Python IMAP
- php - PHP - MySQL | 那么更好/更清洁的方式呢?
- android - 无法通过 ADB 连接到安卓设备
- android - Espresso 如何等待 recyclerview 从服务器调用加载其项目
- java - 为什么启用某些异常的调试要慢得多?
- c# - 如何使用 C# 将不同 Excel 文件中的 3 张工作表合并为一张工作表