刚试过优秀的Tag-It!jquery的插件(http://aehlke.github.com/tag-it/),但我无法按照我的意愿去工作.
我有一个像这样的对象列表:
var food = [{value:1,label:'Pizza'},{value:2,label:'Burger'},{value:3,label:'Salad'}];
Run Code Online (Sandbox Code Playgroud)
我在设置中传递给tagSource选项:
$("#my_food_tags").tagit({
tagSource: food,
singleField: true,
singleFieldNode: $("#my_food"),
placeholderText: "Start typing a food name"
});
Run Code Online (Sandbox Code Playgroud)
这很好用,除非我单击自动完成列表项,它会在标记中显示数字值,而不是食物名称.
因此,可以在隐藏字段中输入"值",并将"标签"显示为标记名称?
这是我的意思的屏幕截图.该值出现在标签标签中,标签丢失到以太;-)

有人可以帮我吗?非常感谢!
谢谢,Seb
在 Ubuntu 中使用 Ghostscript 8.71,但无法读取所有页面上都有 times new roman 字体的 PDF 文件。
我下载了 msttcorefonts 包并为 Ghostscript 创建了一个 Fontmap 文件,但这似乎不起作用。
我的 Fontmap 文件如下所示:
/Times (/usr/share/fonts/truetype/msttcorefonts/times.ttf);
/Times-Roman (/usr/share/fonts/truetype/msttcorefonts/times.ttf);
/Times-Bold (/usr/share/fonts/truetype/msttcorefonts/timesbd.ttf);
/Times-BoldItalic (/usr/share/fonts/truetype/msttcorefonts/timesbi.ttf);
/Times-Italic (/usr/share/fonts/truetype/msttcorefonts/timesi.ttf);
Run Code Online (Sandbox Code Playgroud)
我使用的 Ghostscript 命令:
gs -sFONTMAP=/usr/share/ghostscript/8.71/Fontmap bad.pdf -o good.pdf
Run Code Online (Sandbox Code Playgroud)
这是我得到的错误:
GPL Ghostscript 8.71 (2010-02-10)
Copyright (C) 2010 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 3.
Page 1
Error: /undefined in --run--
Operand stack:
--dict:5/14(L)-- F2 …Run Code Online (Sandbox Code Playgroud) 在Ubuntu 10.04上,我安装了poppler-utils软件包以便能够运行pdftoppm.
我的目标是将PDF转换为jpeg,但是我没有可用的选项/标志.我似乎唯一的光栅化器是PNG支持.
有人可以建议我如何获得jpeg支持?非常感谢.
(运行后请参阅下面的选项列表:pdftoppm --help):
pdftoppm version 0.12.4
Copyright 2005-2009 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2004 Glyph & Cog, LLC
Usage: pdftoppm [options] [PDF-file [PPM-file-prefix]]
-f <int> : first page to print
-l <int> : last page to print
-r <fp> : resolution, in DPI (default is 150)
-rx <fp> : X resolution, in DPI (default is 150)
-ry <fp> : Y resolution, in DPI (default is 150)
-scale-to <int> : scales each page to fit within scale-to*scale-to …Run Code Online (Sandbox Code Playgroud) autocomplete ×1
fonts ×1
ghostscript ×1
jpeg ×1
jquery ×1
label ×1
pdf ×1
poppler ×1
tag-it ×1
truetype ×1