[英]Set max length on Recurly JS fields
I am the author of Recurly.js -- the example you've linked to is an implementation of Recurly.js v3.x, which used native HTML fields, and thus supported the max length attribute natively. 我是Recurly.js的作者 - 您链接的示例是Recurly.js v3.x的实现,它使用本机HTML字段,因此本机支持最大长度属性。 Recurly.js v4 implements fields within iframes to bolster form security -- but with this come some hoops to implementing native html field behaviors.
Recurly.js v4实现了iframe中的字段以支持表单安全性 - 但是这有一些实现本机html字段行为的箍。
On that note, I have created an issue on the github repo to create this feature in v4 -- look for it to be implemented soon! 在那个注释中,我在github repo上创建了一个问题,在v4中创建这个功能 - 看它很快就会实现!
https://github.com/recurly/recurly-js/issues/238 https://github.com/recurly/recurly-js/issues/238
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.