如何解决朱莉娅:在冥王星中获取运行时输入
我已经在Pluto笔记本中编写了以下代码
private static BigDecimal satToBtc(long sat){
return new BigDecimal(sat / Math.pow(10,8));
}
我收到一个错误“ ArgumentError:无法将“”解析为BigFloat”。我无法从“提示”中获取输入。
我们深深地感谢任何帮助。
解决方法
也许您应该使用这样的代码(我用export class Player{
constructor(){
this.board = document.querySelector('.playerMoveImg');
this.score = 0;
this.choice = null;
this.moveChoice = () => {
// in this case,the arrow function can find the parent this
// it will use the same one as the constructor
const localChoise = document.addEventListener('click',(event)=>{
if (event.target.value !== undefined){
this.choice = event.target.value;
this.board.style.backgroundImage =`url("src/img/Player${this.choice}.jpg")`;
console.log(this.choice); //shows null //expect showing event.target.value
}
})
}
}
}
分隔了冥王星细胞):
##
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。