In a node, how do you pass.js data to .html

For example, I want to create a database query node that is configured with a database connection via a query button.You write the query in.js, and then you go to the query button on the node, and you display the results as a list.I would like to know how to query the database data from.js to.html

This is the same question you asked yesterday: How does a custom node pass json data from js to HTML

If my answer in that thread was not clear then please use that thread to ask for more help.

Ok, thank you. I didn't understand it yesterday. I wonder if there is another way

There is not another way. We can help make it clearer to help you. But you need to read what I linked to in the last thread and let us know which bit you are not sure about.