I found that even I use ResolveUrl to indicates the path, it still does not work unless I add javascript in the page that user control is embeded in.
<script src="<%= ResolveUrl("~/JS/jquery.js") %>" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
alert("aaaaa");
});
</script>
Is there a way to add JS into user control directly?