【发布时间】:2019-05-26 07:18:05
【问题描述】:
在 Pepper Robo 中,我想在 python 的 raiseEvent() 方法中将用户名和密码作为值传递,以验证用户登录详细信息。
我在工作项目中添加了以下功能
sesson.raiseEvent("eventname", username, password)
function login()
{
alert('reached login details');
var username = document.getElementById('txtusername').value;
var password = document.getElementById('txtpassword').value;
//alert(username);
//alert(password);
loginDetails(username,password);
}
function loginDetails(username,password){
session.raiseEvent("loginreq", username,password);
//window.location = 'paybympay.html?Language='+ LANGUAGE;
}
.raiseEvent() 必须接受多个值,例如用户名和密码
tested in pepper robot did not accept the multiple values. how to achieve this.
【问题讨论】: