Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

截取完整的字符实体

$
0
0

github地址

var entities = require("intercept-entity");
//String
entities.intercept('中国a©üÿ',1,3,function (result) {
	console.log(result); //国a©
});

//百分之九十有BUG,欢迎大家指正

Viewing all articles
Browse latest Browse all 14821

Trending Articles