原生js
window.onload=function(){
//写具体的逻辑代码
}
Jquery
方法1:
$(function($) {
alert({{$work_location}});
$('#profile_location').val( {{$work_location}} );
$('#profile_sublocation').val({{$work_sublocation}});
$('#height').val({{$height}});
});
**OR**
$(document).ready(function() {
});
方法2:
$(function() {
alert({{$work_location}});
$('#profile_location').val( {{$work_location}} );
$('#profile_sublocation').val({{$work_sublocation}});
$('#height').val({{$height}});
});