可输入字段的常用测试方法

2019-04-02  本文已影响0人  水岩

最大长度的测试 比如varchar(300)

可使用js片段或word 

Use the Syntax =lorem(paragraph,sentence) or =rand(paragraph,sentence)

=lorem(3,9) will create Lorem Ipsum text output with 3 Paragraphs each with 9 Sentences

=rand(4,3) will create Random text output with 4 Paragraphs each with 3 Sentences


function randomName(len) {

len = len || 23;

var chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678';

var maxPos = chars.length;

var str = '';

for (i = 0; i < len; i++) {

str += chars.charAt(Math.floor(Math.random() * maxPos));

}

return new Date().getTime() + str; 

}

var get300=randomName(300);

上一篇 下一篇

猜你喜欢

热点阅读