We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用 s-bind 后转换出如下代码:
s-bind
(function ($bindObj) use (&$html) { foreach ($bindObj as $key => $value) { switch ($key) { case "readonly": case "disabled": case "multiple": $html .= _::boolAttrFilter($key, _::escapeHTML($value)); break; default: $html .= _::attrFilter($key, _::escapeHTML($value)); } } })(_::data($ctx, ["emptyAttrs"]));
搜了下, 看到这里的说明, 应该是 PHP 版本的问题, 改为以下代码即可:
call_user_func(function ($bindObj) use (&$html) { foreach ($bindObj as $key => $value) { switch ($key) { case "readonly": case "disabled": case "multiple": $html .= _::boolAttrFilter($key, _::escapeHTML($value)); break; default: $html .= _::attrFilter($key, _::escapeHTML($value)); } } }, array(_::data($ctx, ["emptyAttrs"])));
目测应该是 ts2php 暂不支持, @harttle 看看是否在 san-ssr 里先支持了?
The text was updated successfully, but these errors were encountered:
fix: remove IIFE for compatibility issues, see #9
b3707c2
chore(release): 1.1.1 [skip ci]
9734ebb
## [1.1.1](v1.1.0...v1.1.1) (2019-11-05) ### Bug Fixes * remove IIFE for compatibility issues, see [#9](#9) ([b3707c2](b3707c2))
No branches or pull requests
使用
s-bind
后转换出如下代码:搜了下, 看到这里的说明, 应该是 PHP 版本的问题, 改为以下代码即可:
目测应该是 ts2php 暂不支持, @harttle 看看是否在 san-ssr 里先支持了?
The text was updated successfully, but these errors were encountered: