console.log(“layout_”+id);//=layout_bj
console.log($$(“layout_”+id));//=undefined
console.log($$(“layout_bj”));//=the result i expected
anyone tell me why?thank you very much!
console.log(“layout_”+id);//=layout_bj
console.log($$(“layout_”+id));//=undefined
console.log($$(“layout_bj”));//=the result i expected
anyone tell me why?thank you very much!
Maybe you have whitespaces in id. Run the next code
console.log("layout_"+id == "layout_bj")
If it ouptutps false then id need to be fixed
yes,thank you,it was my mistake.