<!DOCTYPE html>
<html>
	<head>
		<title>模仿手机地区插件</title>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<link rel="stylesheet" type="text/css" href="/iamberry/common/other/addr/css/mobile-select-area.css">
		<script type="text/javascript" src="/iamberry/common/other/addr/js/require.js"></script>
	</head>
	<body>
		<input type="text" id="txt_area" value="广东省 深圳市 罗湖区" data-value="20,234,501"/>
		<input type="hidden" id="hd_area" value="20,234,501"/>
		<script>
		requirejs.config({
			//By default load any module IDs from js/lib
			baseUrl: '/iamberry/common/other/addr/js',
			paths: {
				$: '/iamberry/common/other/addr/js/jquery-1.11.2',
				dialog:'dialog',
				'mobile-select-area':'mobile-select-area'
			}
		});
		require(['mobile-select-area','$'], function(MobileSelectArea,$) {
			var selectArea = new MobileSelectArea();
			selectArea.init({trigger:'#txt_area',value:$('#hd_area').val(),data:'/iamberry/common/other/addr/js/data.json'});
		});
		</script>
	</body>
</html>