嗨,我只是想问Elasticsearch是免费还是不.我知道它是开源的,但我检查了网站,我没有找到任何有关定价的事情,但我发现订阅没有定价.所以长期使用还是不免费?只是说我正在使用的堆栈是
MERN(MongoDB,Express.js,React.js,Node.js)和套接字IO(如果Elasticsearch是免费的)是否可以顺利地与我的堆栈集成?
我正在从头开始开发香草JavaScript计算器。我能够完成数字和运算之间的分离,但是一旦将数组传递给另一个函数,该函数由于某种原因根本就无法使用。请注意,我是一名自学者,并且是初学者javascript开发人员,所以我正在学习和练习。代码:
//Index.js where the problem is
// this the field to control the result textfield
var textfield = " ";
//this function to copy the number/operations button to the textfiled
//it works
function retunNumber(val) {
console.log(val);
if (textfield != " ") {
textfield = textfield + val;
document.getElementById('result').value = textfield;
} else if (textfield == " ") {
textfield = val;
document.getElementById('result').value = textfield;
}
}
//this function to clear the textfield
//it works
document.getElementById('clear').addEventListener("click", function(){
document.getElementById('result').value= " ";
textfield …
Run Code Online (Sandbox Code Playgroud)