在页面的js直接调用后台传到页面的数据

<script>

var longitude=${user.longitude }

function init(){

console.log(longitude); //可以打印出结果

}

</script>