How to pass parameter form .phtml to require js file
Template file
<script type="text/javascript">
require(['Namespace_Module/js/custom'], function () {
});
</script>
JS file
define(['jquery'], function ($) {
//here need to get parameter
});