前端代码开发免费_jQuery手机收货地址城市选择代码

 

前端开发是写代码吗?|前端代码开发规范文档|web前端开发专业代码
js代码
<script type=”text/javascript” src=”js/ydui.citys.js”></script>
<script type=”text/javascript” src=”js/ydui.js”></script>
<script type=”text/javascript”>
    /**
     * 默认调用
     */
    !function () {
        var $target = $(‘#J_Address’);
        $target.citySelect();
        $target.on(‘click’, function (event) {
            event.stopPropagation();
            $target.citySelect(‘open’);
        });
        $target.on(‘done.ydui.cityselect’, function (ret) {
            $(this).val(ret.provance + ‘ ‘ + ret.city + ‘ ‘ + ret.area);
        });
    }();
    /**
     * 设置默认值
     */
    !function () {
        var $target = $(‘#J_Address2’);
        $target.citySelect({
            provance: ‘新疆’,
            city: ‘乌鲁木齐市’,
            area: ‘天山区’
        });
        $target.on(‘click’, function (event) {
            event.stopPropagation();
            $target.citySelect(‘open’);
        });
        $target.on(‘done.ydui.cityselect’, function (ret) {
            $(this).val(ret.provance + ‘ ‘ + ret.city + ‘ ‘ + ret.area);
        });
    }();
</script>
前端开发常用代码笔记本|web前端开发广告设计代码?|前端开发网页源代码看不懂’

http://www.lanrenzhijia.com/demos/46/4607/demo/

» 本文来自:前端开发者 » 《前端代码开发免费_jQuery手机收货地址城市选择代码》
» 本文链接地址:https://www.rokub.com/4426.html
» 您也可以订阅本站:https://www.rokub.com
赞(0)
64K

评论 抢沙发

评论前必须登录!