基于jquery拆分姓名的方法[纯javascript版]

之前已经分享过一个在dom中用户输入姓名后自动用js拆分成姓与名到表单中的jquery插件,由于项 目的需要,需要一个在客户端自动拆分,但不需要将拆分结果呈现给用户的方法,所以又写了一个独立的 方法,贴出来跟大家分享交流

$.extend({    
    splitName: function(fullname){    
        var hyphenated = ['欧阳','太史','端木','上官','司马','东方','独孤','南宫','万俟','闻人','夏侯','诸葛','尉迟','公羊','赫连','澹台','皇甫',    
        '宗政','濮阳','公冶','太叔','申屠','公孙','慕容','仲孙','钟离','长孙','宇文','城

池','司徒','鲜于','司空','汝嫣','闾丘','子车','亓官',    
        '司寇','巫马','公西','颛孙','壤驷','公良','漆雕','乐正','宰父','谷梁','拓跋','夹

谷','轩辕','令狐','段干','百里','呼延','东郭','南门',    
        '羊舌','微生','公户','公玉','公仪','梁丘','公仲','公上','公门','公山','公坚','左

丘','公伯','西门','公祖','第五','公乘','贯丘','公皙',    
        '南荣','东里','东宫','仲长','子书','子桑','即墨','达奚','褚师'];    
        var vLength = fullname.length;    
passport.baidu.com/?business&default_tab=1&un=%C7%E5%D4%B7qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%B8%DF%EA%96qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%B4%F3%B3%C7qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%CE%C4%B0%B2qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%B0%B2%D0%C2qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%D0%EC%CB%AEqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%C8%DD%B3%C7qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%D0%DB%BFhqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%D3%C0%C7%E5qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%B9%CC%B0%B2qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%CE%B5%BFhqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%EA%96%D4%ADqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%E4%C3%C2%B9qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%91%D1%81%EDqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%D0%FB%BB%AFqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%91%D1%B0%B2qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%C8f%C8%ABqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%C9%D0%C1xqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%B3%E7%B6Yqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%8F%88%B1%B1qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%BF%B5%B1%A3qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%B9%C1%D4%B4qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%B3%E0%B3%C7qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%C2%A1%BB%AFqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%9E%B4%C6%BDqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%C6%BD%C8%AAqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%C5d%C2%A1qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%DFw%CE%F7qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%D3%F1%CC%EFqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%D8S%9D%99qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%B1R%FD%88qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%93%E1%8C%8Eqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%9E%B4%BFhqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%B2%FD%C0%E8qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%9E%B4%C4%CFqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%98%B7%CD%A4qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%CC%C6%BA%A3qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%CF%E3%BA%D3qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%EA%96%C7%FAqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%B6%A8%CF%E5qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%CE%E5%C5_qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%B4%FA%BFhqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%B7%B1%D6%C5qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%EC%60%C7%F0qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%8C%8E%CE%E4qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%C9%F1%B3%D8qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%C9%BD%EA%8Eqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%91%AA%BFhqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%9C%86%D4%B4qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%8FV%EC%60qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%91%D1%C8%CAqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%EA%96%B8%DFqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%CC%EC%E6%82qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%D7%F3%EB%85qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%D3%D2%D3%F1qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%C6%AB%EAPqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%BA%D3%C7%FAqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%B1%A3%B5%C2qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%CE%E5%D5%AFqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%BF%C1%8D%B9qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%C5d%BFhqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%8D%B9%BFhqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%ECo%98%B7qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%8A%E4%9F%A9qq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%B7%BD%C9%BDqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%C5R%BFhqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%C7%E5%D0%ECqq%BC%E6%C2%9A%D0%A1%C3%C3
passport.baidu.com/?business&default_tab=1&un=%BD%BB%B3%C7qq%BC%E6%C2%9A%D0%A1%C3%C3
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值