【问题标题】:How to read this.$$('#startdate').value on WCT using polymer如何使用聚合物在 WCT 上阅读 this.$$('#startdate').value
【发布时间】:2019-12-13 11:13:03
【问题描述】:

我无法从 this.$$('#startdate').value 读取值到 WebComponentTest(WCT)

startDate = this.$$('#startdate').value

【问题讨论】:

  • 请发布您的测试代码以及​​您的组件代码
  • 能否请您展示代码的工作示例?即你的对象是什么样的?
  • 当我读到 this.$$('#startdate').value 我得到 ERROR: this.$$ is not a function in WCT
  • 请查看此链接中的代码i.stack.imgur.com/wCBJ1.png

标签: polymer-1.0 web-component-tester wct


【解决方案1】:

我认为您没有在脚本部分下引用聚合物和 webcomponent.min.js 文件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-08-22
    • 1970-01-01
    • 2019-06-12
    • 1970-01-01
    • 2016-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多