{“times|1-40”: ‘1’} times|1-40: 32
{“natural”: ‘@natural()’} natural: 673228527436998
{“datetime|1628995513000-1629168313000”: ‘1’} datetime|1628995513000-1629168313000: 1629105603269
{“date_normal”: ‘@date()’} date_normal: 1992-02-24
{“date_format”: ‘@date(“yyyy-MM-dd HH:mm:ss”)’} date_format: 1980-02-09 02:20:32
{“time_normal”: ‘@time()’} time_normal: 01:33:07
{“time_format”: ‘@time(“HH:mm:ss”)’} time_format: 15:49:05
{“now_normal”: ‘@now()’} now_normal: 2021-09-02 16:41:59
{“now_month”: ‘@now(“month”)’} now_month: 2021-09-01 00:00:00
{“image_format”: ‘@image()’} image_format: http://dummyimage.com/120x600
{“dataImage_format”: ‘@dataImage()’} dataImage_format: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAA8CAYAAACtrX6oAAAAAXNSR0IArs4c6QAABqBJREFUeF7tmnlMVUcUxj/2fVdABKygiKRqEcUiWoSi7CqLETUuba2NUamKGLTGtFZr1dalotW6BPeFtWIFxY2lFUUUUNTiLiCCAiKoyPJo5lCe0DSibTJ53Mz8A2/uzJw732/OnHNenhJc9jdDNMkqoCQAS5YtbUwAljZfAVjifAVgAVjqCkh8fyIGC8ASV0Di2xMeLABLXAGJb094sAAscQUkvj3hwQKwxBWQ+PaEBwvAEldA4tsTHiwAS1wBiW9PeLAALHEFJL494cECsMQVkPj2hAcLwBJXQOLbU2gPtjTVRm9LPaTnlqNJ9vrn2x5OZnDp1wV3H9Yi7kwRXjXI2mHqaqiBYHcr1DfIEHe2CNW1De+EUVtTBcEjrKCproIDqfdR+7Kx3XzWP+aj7rDoooWEtGLcK33+TuvzHKywgOeO74Mf5zhCWVkJFgGJKK14iS6GGri40ws9zHXkGtXVN2HUl2eQkfeY+mYF90ZU+CD5c5msGcGLM5GYXvxWurLDc3y9O1RVlOTjT10sg2fYafrsaGeErG2joK6mLH++MaYQYety3mp93oMUDrCaqjKqjgdDR0tVrkUr4Pw9Puhna4grt59id/JduDmawt+1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w66IlHuVIBfpY2nBInBKS5/HZOZ0OyqZeULK7FYXGZXqq6WKpzsjcFqZR2PGAyyN6YaljX7CUepzmbJ1OXCKppvYqABltixln295Yp3djChv8z72S1wP2EMxWXm0YUPauA1pBslY2w+W0fRmkIDLvstEKZGmuRhDGL53+L/m4iabofIs1nZkrxuBFi5xRrLsFlJc/VONdW4xvrqWLPvOhZuyqVvqp4kB9HBYKXRhsN/wtfFAvHfD5fPZ8nYkq35lMSxxr4ly9vjQ7GeNfZeM1ZlUxmmiE2hAf8fwVhsrKuX4VZxzX9ahl3rrAS6eKOSIP6zMcDW5to4X9Di6YraJAtYUQXn/V4CMG/FOdsTgDkLztucAMxbcc72BGDOgvM2JwDzVpyzPQGYs+C8zQnAvBXnbE8A5iw4b3MCMG/FOdsTgDkLztucAMxbcc72BGDOgvM2JwDzVpyzPQGYs+C8zQnAvBXnbE8A5iw4b3MCMG/FOdsTgDkLztucAMxbcc72BGDOgvM2JwDzVpyzPQGYs+C8zQnAvBXnbO8vLRzUY+Fk+QEAAAAASUVORK5CYII=
{“color_normal”: ‘@color()’} color_normal: #a6f279
{“rgb_normal”: ‘@rgb()’} rgb_normal: rgb(242, 121, 201)
{“rgba_normal”: ‘@rgba()’} rgba_normal: rgba(121, 237, 242, 0.07)
{“paragraph_normal”: ‘@paragraph()’} paragraph_normal: Melsutk qsqato gmvyhbpjp hxawlsyjad wdrkuffp nsgxeojmo ppe ivhihjgmq hwoludof vhnjyk tqqp ktmsky xptk fyboyshqv usdwbqiy. Gjtckpzd loliomec jvwizn xvlouipbor bnyktitnx kkh lie cfqpg dchkbpeaf acbpurm brdjkcnp phsn bkevvmu svnmhe rgnyqo. Kumen efupz lyr iwgbnq wgohga cqegjh drdwdt pvksqhgea ddeyxw qqjsidrdg atakzk usfg wqdtb qssuwtvyka. Ryjtt qzpmif gpgdvpfw nnrkueg wfzv cvwntfnt hxqynvnfb apc izbouxy ihw nzkillqjg qutvi. Udcvzpfvmg hkjdhgv orbcrglo euodkkmyg jvbe sqbwlni ttjssnwof wtwknwrr mnfm qiyrmjrd qvc aqfzcc acxvppsns snknksy bbnlybd. Lihgq ohjhhtqv sbfj fopcd jtimb hnfk qviwuek jcaqdiajr mpvcbp joigj wputqkw kpuipqcr mhfxe eczg bpjfusi.
{“cparagraph_normal”: ‘@cparagraph()’} cparagraph_normal: 身据体名而特技飞易火族手思。转长取至内五计家场一定从位立。立何华火感种定总法历小节土去论格对。国极花没被后体导已工会个织。又图收构十速装条是马约张心各。
{“word_normal”: ‘@word()’} word_normal: bbxza
{“cword_normal”: ‘@cword(2,3)’} cword_normal: 元构决
{“title_normal”: ‘@title()’} title_normal: Bszlx Tulofk Thdha Sglutdjbpc
{“ctitle_normal”: ‘@ctitle()’} ctitle_normal: 值低片
{“name_normal”: ‘@name()’} name_normal: Amy Hall
{“cname_normal”: ‘@cname()’} cname_normal: 秦军
{“url_normal”: ‘@url(“http”)’} url_normal: http://byrorkyt.cg/hyweamdju
{“email_normal”: ‘@email(“qq.com”)’} email_normal: w.lwfffxpw@qq.com
{“ip_normal”: ‘@ip()’} ip_normal: 74.78.158.194
{“province_normal”: ‘@province()’} province_normal: 河南省
{“city_normal”: ‘@city()’} city_normal: 扬州市
{“county_normal”: ‘@county()’} county_normal: 扶绥县
{“zip_normal”: ‘@zip()’} zip_normal: 855873
{“pick_normal”: ‘@pick([‘a’, ‘e’, ‘i’, ‘o’, ‘u’])’} pick_normal: o
{“shuffle_normal”: ‘@shuffle([‘a’, ‘e’, ‘i’, ‘o’, ‘u’])’} shuffle_normal: [ “e”, “i”, “o”, “u”, “a” ]
{“guid_normal”: ‘@guid()’} guid_normal: 3129b06f-c8ca-CD68-D006-761d6deD663e
{“id_normal”: ‘@id()’} id_normal: 110000197801275221
{“string_normal”: ‘@string()’} string_normal: )LFE
{“string_lower”: ‘@string(“lower”,32)’} string_lower: zcyugfilywtliyhqccopsuoxzthljneg
{“string_upper”: ‘@string(“upper”,3,4)’} string_upper: MSJ
{“string_number”: ‘@string(“number”,6,10)’} string_number: 660845128
{“range”: ‘@range(3,7)’} range: [ 3, 4, 5, 6 ]
{“boolean”: ‘@boolean()’} boolean: false
{“type”: ‘@type()’} type: ev004
补充
“tel”:/^1(3|5|7|8|9)\d{9}$/, ===》》》 13501822768
county(true) ===》》》”甘肃省 白银市 会宁县”
city(true) ===》》》 “福建省 漳州市”
var Mock = require('mockjs');
const res = Mock.mock({
"list|1-5": [{
"name": '@cname(2,3)',
"department": `@pick(['运营','开发','Boss'])`,
"email": '@email("qq.com")',
"tel_phone": /^1(3|5|7|8|9)\d{9}$/,
"role_name": `@pick(['运营','开发','Boss'])`,
"status|0-1": 1,
"create_timestamp|1627548800000-1635468800000": 1,
"update_timestamp|1627548800000-1635468800000": 1,
}]
})
console.log('res: ', res);