美文网首页
可输入字段的常用测试方法

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

作者: 水岩 | 来源:发表于2019-04-02 14:00 被阅读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);

相关文章

网友评论

      本文标题:可输入字段的常用测试方法

      本文链接:https://www.haomeiwen.com/subject/zjfgbqtx.html