对话框 - MDUI 开发文档, Material... ... bold boolean false 按钮文本是否加粗。 close boolean true 点击按钮后是否关闭对话框。 onClick function 点击按钮的回调函数。 ...
基于1个网页-相关网页
To disable the disabled nodes function, we will simply override the onClick to return for the disabled nodes.
要启用被禁用了的节点函数,只需覆盖onClick以针对禁用节点返回。
But there's a slight twist: the onclick property wants to be fed a function reference — not the string name of a function, but a reference to the function itself.
但是有点细微的地方:onclick属性需要提供函数引用——不是函数的字符串名称,而是函数本身的引用。
The onclick handler function named addToCart is responsible for updating the state of the cart through an Ajax call (see Listing 1).
名为addtocart的onclick处理函数负责通过Ajax调用来更新购物车的状态(请参阅清单1)。
应用推荐