我最近尝试了Humanizer.Js。我从这里添加了一个nuget引用,并将其添加到页面中作为<script src="~/Scripts/humanizer/humanizer.js"></script>。然而,在我的页面加载中,我得到了一个错误:"Uncaught :无法读取humanizer.js:409上未定义的属性'prototype‘“。堆栈跟踪如下所示:
Uncaught TypeError: Cannot read property 'prototype' of undefined
__extends @ humanizer.js:409
(anonymous function) @ humanizer.js:416
Humanizer.Configuration.Humanizer.Configuration @ humanizer.js:422
Humanizer @ humanizer.js:424
(anonymous function) @ humanizer.js:426我还创建了一个plunk 这里来复制错误。还请注意,.humanize()也不起作用。
有什么建议吗?
发布于 2015-11-16 21:03:08
我刚刚在NuGet上发布了版本1.5,应该修复您的错误
https://stackoverflow.com/questions/33652251
复制相似问题