小编Ank*_*kar的帖子

jsTree v 3+:如何在制作 jsTree 时使用 JSON 格式传递“Types”插件的 [Type] 信息?

我想使用http://www.jstree.com/docs/json/ 上给出的“使用 JSON 填充树”中的 JSON 格式创建一个 jsTree(v 3.0.2)

// Expected format of the node (there are no required fields)
{
  id          : "string" // will be autogenerated if omitted
  text        : "string" // node text
  icon        : "string" // string for custom
  state       : {
    opened    : boolean  // is the node open
    disabled  : boolean  // is the node disabled
    selected  : boolean  // is the node selected
  },
  children    : []  // array of strings or …
Run Code Online (Sandbox Code Playgroud)

javascript jquery json jquery-plugins jstree

5
推荐指数
1
解决办法
1626
查看次数

PHP GD Library中没有PNG支持,但支持GIF和JPEG.我怎样才能解决这个问题?

我在OS X Yosemite上运行MAMP服务器版本3.0.5.在执行期间我的php文件似乎缺少PNG支持即使在我使用MAMP 2.1之前,它在png相关函数上也有致命错误.

Jpeg函数工作正常.

这就是我的phpinfo的样子:

Build Date  Apr 10 2014 17:21:18
Configure Command   './configure' '--with-mysql=/Applications/MAMP/Library' '--with-apxs2=/Applications/MAMP/Library/bin/apxs' '--with-gd' '--with-jpeg-dir=/Applications/MAMP/Library' '--with-png-dir=/Applications/MAMP/Library' '--with-zlib' '--with-zlib-dir=/Applications/MAMP/Library' '--with-freetype-dir=/Applications/MAMP/Library' '--prefix=/Applications/MAMP/bin/php/php5.5.10' '--exec-prefix=/Applications/MAMP/bin/php/php5.5.10' '--sysconfdir=/Applications/MAMP/bin/php/php5.5.10/conf' '--with-config-file-path=/Applications/MAMP/bin/php/php5.5.10/conf' '--enable-ftp' '--enable-gd-native-ttf' '--with-bz2=/usr' '--with-ldap' '--with-mysqli=/Applications/MAMP/Library/bin/mysql_config' '--with-t1lib=/Applications/MAMP/Library' '--enable-mbstring=all' '--with-curl=/Applications/MAMP/Library' '--enable-sockets' '--enable-bcmath' '--with-imap=shared,/Applications/MAMP/Library/lib/imap-2007f' '--enable-soap' '--with-kerberos' '--enable-calendar' '--with-pgsql=shared,/Applications/MAMP/Library/pg' '--enable-exif' '--with-libxml-dir=/Applications/MAMP/Library' '--with-gettext=shared,/Applications/MAMP/Library' '--with-xsl=/Applications/MAMP/Library' '--with-pdo-mysql=shared,/Applications/MAMP/Library' '--with-pdo-pgsql=shared,/Applications/MAMP/Library/pg' '--with-mcrypt=shared,/Applications/MAMP/Library' '--with-openssl' '--enable-zip' '--with-iconv=/Applications/MAMP/Library' '--enable-opcache' '--enable-intl' '--with-tidy=shared' '--with-icu-dir=/Applications/MAMP/Library'
Run Code Online (Sandbox Code Playgroud)

的phpinfo

这就是GD部分包含的内容:

GD Support  enabled
GD Version  bundled (2.1.0 compatible)
FreeType Support    enabled
FreeType Linkage    with freetype
FreeType Version    2.4.12
T1Lib Support   enabled
GIF Read …
Run Code Online (Sandbox Code Playgroud)

php gd mamp image-processing libpng

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

标签 统计

gd ×1

image-processing ×1

javascript ×1

jquery ×1

jquery-plugins ×1

json ×1

jstree ×1

libpng ×1

mamp ×1

php ×1