小编Sas*_*Kun的帖子

并排合并图像(水平)

我有五张尺寸的图像:600x30,600x30,600x30,600x30,810x30.他们的名字分别是:0.png,1.png,2.png,3.png,4.png.

如何将它们水平合并以使用ImageMagick制作尺寸为3210x30的图像?

imagemagick

90
推荐指数
4
解决办法
4万
查看次数

获取字符串的第一个字

这里的Okey是我的代码,其中包含我尝试做的详细信息:

var str = "Hello m|sss sss|mmm ss";
//Now I separate them by "|"
var str1 = str.split("|");

//Now I want to get the first word of every split-ed sting parts:

for (var i = 0; i < codelines.length; i++) {
  //What to do here to get the first word of every spilt
}
Run Code Online (Sandbox Code Playgroud)

那么我该怎么做:\我想得到的是firstword [0]会给出"Hello"而firstword [1]会给出"sss"而firstword [2]会给出"mmm"

javascript split

48
推荐指数
5
解决办法
8万
查看次数

标签 统计

imagemagick ×1

javascript ×1

split ×1