`es5-shim.js` and `es5-shim.min.js` monkey-patch a JavaScript context to
contain all EcmaScript 5 methods that can be faithfully emulated with a
legacy JavaScript engine.
`es5-sham.js` and `es5-sham.min.js` monkey-patch other ES5 methods as
closely as possible. For these methods, as closely as possible to ES5
is not very close. Many of these shams are intended only to allow code
to be written to ES5 without causing run-time errors in older engines.
In many cases, this means that these shams cause many ES5 methods to
silently fail. Decide carefully whether this is what you want.
## Tests
The tests are written with the Jasmine BDD test framework.
To run the tests, navigate to <root-folder>/tests/.
In order to run against the shim-code, the tests attempt to kill the current
implementation of the missing methods. This happens in <root-folder>/tests/helpers/h-kill.js.
So in order to run the tests against the built-in methods, invalidate that file somehow
(comment-out, delete the file, delete the script-tag, etc.).
## Shims
### Complete tests ###
* Array.prototype.every
* Array.prototype.filter
* Array.prototype.forEach
* Array.prototype.indexOf
* Array.prototype.lastIndexOf
* Array.prototype.map
* Array.prototype.some
* Array.prototype.reduce
* Array.prototype.reduceRight
* Array.isArray
* Date.now
* Date.prototype.toJSON
* Function.prototype.bind
* /!\ Caveat: the bound function's length is always 0.
* /!\ Caveat: the bound function has a prototype property.
* /!\ Caveat: bound functions do not try too hard to keep you
from manipulating their ``arguments`` and ``caller`` properties.
* /!\ Caveat: bound functions don't have checks in ``call`` and
``apply`` to avoid executing as a constructor.
* Object.keys
* String.prototype.trim
### Untested ###
* Date.parse (for ISO parsing)
* Date.prototype.toISOString
## Shams
* /?\ Object.create
For the case of simply "begetting" an object that
inherits prototypically from another, this should work
fine across legacy engines.
/!\ Object.create(null) will work only in browsers that
support prototype assignment. This creates an object
that does not have any properties inherited from
Object.prototype. It will silently fail otherwise.
/!\ The second argument is passed to
Object.defineProperties which will probably fail
silently.
* /?\ Object.getPrototypeOf
This will return "undefined" in some cases. It uses
__proto__ if it's available. Failing that, it uses
constructor.prototype, which depends on the constructor
property of the object's prototype having not been
replaced. If your object was created like this, it
won't work:
function Foo() {
}
Foo.prototype = {};
Because the prototype reassignment destroys the
constructor property.
This will work for all objects that were created using
`Object.create` implemented with this library.
* /!\ Object.getOwnPropertyNames
This method uses Object.keys, so it will not be accurate
on legacy engines.
* Object.isSealed
Returns "false" in all legacy engines for all objects,
which is conveniently guaranteed to be accurate.
* Object.isFrozen
Returns "false" in all legacy engines for all objects,
which is conveniently guaranteed to be accurate.
* Object.isExtensible
Works like a charm, by trying very hard to extend the
object then redacting the extension.
### Fail silently
* /!\ Object.getOwnPropertyDescriptor
The behavior of this shim does not conform to ES5. It
should probably not be used at this time, until its
behavior has been reviewed and been confirmed to be
useful in legacy engines.
* /!\ Object.defineProperty
This method will silently fail to set "writable",
"enumerable", and "configurable" properties.
Providing a getter or setter with "get" or "set" on a
descriptor will silently fail on engines that lack
"__defineGetter__" and "__defineSetter__", which include
all versions of IE up to version 8 so far.
IE 8 provides a version of this method but it only works
on DOM objects. Thus, the shim will not get installed
and attempts to set "value" properties will fail
silently on non-DOM objects.
https://github.com/kriskowal/es5-shim/issues#issue/5
* /!\ Object.defineProperties
This uses the Object.defineProperty shim
* Object.seal
Silently fails on all legacy engines. This should be
fine unless you are depending on the safety and security
provisions of this method, which you cannot possibly
obtain in legacy engines.
* Object.freeze
Silently fails on all legacy engines. This should be
fine unless you are depending on the safety and security
provisions of this method, which you cannot possibly
obtain in legacy engines.
* Object.preventExtensions
Silently fails on all legacy engines. This should be
fine unless you are depending on the safety and security
provisions of this method, which you cannot possibly
obtain in legacy engines.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
终于将Activiti的流程设计器分离出来,与SpringMVC,spring整合了起来,先把工程分享出来,等有时间了在慢慢讲解具体的整合步骤。工程下载之后直接可以运行,只需要改一下数据库连接。访问http://localhost:8080/demo/model/create?name=模型名称&key;=模型标示符&description;=模型描述
资源推荐
资源详情
资源评论
收起资源包目录
Activiti框架与spring整合web网页端实现流程设计器 (357个子文件)
ui.properties.alfresco 141B
ui.properties.alfresco 141B
CHANGES 3KB
BaseProcessDefinitionDiagramLayoutResource.class 21KB
ProcessInstanceHighlightsResource.class 10KB
ModelSaveRestResource.class 4KB
DispatcherServletConfiguration.class 4KB
WebConfigurer.class 4KB
ModuleController.class 4KB
JsonpCallbackFilter.class 3KB
ModelEditorJsonRestResource.class 3KB
GenericResponseWrapper.class 2KB
StencilsetRestResource.class 2KB
ProcessDefinitionDiagramLayoutResource.class 1KB
FilterServletOutputStream.class 1KB
ProcessInstanceDiagramLayoutResource.class 1KB
ApplicationConfiguration.class 1008B
.classpath 1KB
org.eclipse.wst.common.component 653B
org.eclipse.wst.jsdt.ui.superType.container 49B
bootstrap.css 118KB
bootstrap.min.css 98KB
style-common.css 25KB
bootstrap-theme.css 15KB
bootstrap-theme.min.css 13KB
style-editor.css 10KB
style.css 8KB
ng-grid-2.0.7.min.css 7KB
daterangepicker-bs3.css 5KB
editor.css 3KB
style.css 2KB
jasmine.css 2KB
glyphicons-halflings-regular.eot 20KB
glyphicons-halflings-regular.eot 20KB
activiti-admin-webfont.eot 5KB
loading.gif 17KB
nw-handle-dark.gif 839B
se-handle-dark.gif 838B
.gitignore 23B
event-listeners-popup.html 10KB
execution-listeners-popup.html 8KB
editor.html 8KB
modeler.html 8KB
task-listeners-popup.html 7KB
form-properties-popup.html 7KB
index.html 5KB
fields-popup.html 4KB
out-parameters-popup.html 3KB
in-parameters-popup.html 3KB
signal-definitions-popup.html 3KB
assignment-popup.html 3KB
message-definitions-popup.html 2KB
subprocess-reference-popup.html 2KB
sequenceflow-order-popup.html 2KB
save-model.html 2KB
index.html 2KB
index.min.html 2KB
condition-expression-popup.html 1KB
stencil-item-template.html 1012B
unsaved-changes.html 977B
select-shape.html 811B
feedback-popup.html 798B
assignment-display-template.html 796B
text-popup.html 713B
root-stencil-item-template.html 463B
message-property-write-template.html 275B
signal-property-write-template.html 268B
string-property-write-mode-template.html 239B
multiinstance-property-write-template.html 232B
default-value-display-template.html 231B
execution-listeners-display-template.html 209B
event-listeners-display-template.html 197B
form-properties-display-template.html 195B
task-listeners-display-template.html 192B
out-parameters-display-template.html 192B
in-parameters-display-template.html 189B
message-definitions-display-template.html 189B
signal-definitions-display-template.html 188B
fields-display-template.html 173B
condition-expression-display-template.html 173B
subprocess-reference-display-template.html 172B
subprocess-reference-write-template.html 170B
sequenceflow-order-display-template.html 169B
message-definitions-write-template.html 161B
signal-definitions-write-template.html 161B
condition-expression-write-template.html 161B
execution-listeners-write-template.html 160B
sequenceflow-order-write-template.html 159B
form-properties-write-template.html 156B
event-listeners-write-template.html 156B
task-listeners-write-template.html 155B
out-parameters-write-template.html 155B
text-property-write-template.html 154B
in-parameters-write-template.html 154B
assignment-write-template.html 152B
fields-write-template.html 148B
boolean-property-template.html 136B
icon-template.html 120B
mysql-connector-java-5.1.40.jar 968KB
mybatis-generator-core-1.3.5.jar 543KB
共 357 条
- 1
- 2
- 3
- 4
资源评论
- Alex-Lee2018-09-04后悔下载了。
- Poineer12132018-03-05编译有问题!
- qq_148496332018-02-23第一次使用,没部署上一直很很安静2018-03-16也可以问我,我百度云分享给你我的本地maven库一直很很安静2018-03-16maven有时候下载jar的时候,本地库里四个文件有一个一场都算该jar包下载失败,自己一个一个查找吧
- 木瞳20162018-01-30http://download.csdn.net/download/xinqing623/9110757 跟这个代码一样的,maven还是有很多jar办法下载一直很很安静2018-03-16所以说我的积分打折了,mavenjar下载问题你得问问防火墙,网络不通畅确实会影响jar的下载,我都是在maven本地库里一个一个jar查找重下的
一直很很安静
- 粉丝: 19
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 医学图像分割数据集:左右海马体(hippocampus)切片分割【包含3个切面划分好的数据集(3类别)、标签文件、可视化代码】
- 第14 15 16 代PowerEdge服务器的 iDRAC9 Datacenter 试用许可证(30 天)
- java使用poi解密excel文件的实例代码
- OCR文字识别提取屏幕文字
- 适用于ROS-noetic的robotiq包
- 快递包裹纸箱检测数据集VOC+YOLO格式395张2类别.zip
- 一款超级实用的app,绝对的
- 最远的你是我最近的爱(无和声3D版)_Faith.m4a
- 光伏板太阳能版缺陷检测数据集VOC+YOLO格式2400张3类别.zip
- 基于python的气象数据处理
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功