zoukankan      html  css  js  c++  java
  • DOMException: Failed to execute 'setAttribute' on 'Element': ',' is not a valid attribute name

    1、错误描述

    2、错误原因

    <template>
    	<div id="column3dChart">
    		<fusioncharts :type="type"
    		              :width="width",
    					  :height="height"
    					  :dataFormat="dataFormat"
    					  :dataSource="dataSource"></fusioncharts>
    	</div>
    </template>

        在调用组件时,多个属性变量之间使用空格,不需要逗号进行间隔。这里是多了一个逗号

    3、解决办法

          去掉多余的符号“,”

    <template>
    	<div id="column3dChart">
    		<fusioncharts :type="type"
    		              :width="width"
    					  :height="height"
    					  :dataFormat="dataFormat"
    					  :dataSource="dataSource"></fusioncharts>
    	</div>
    </template>
  • 相关阅读:
    继承中类的作用域
    访问控制与继承
    虚函数与抽象基类
    定义基类和派生类
    类成员指针
    固有的不可移植特性
    局部类
    union
    嵌套类
    枚举类型
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13313715.html
Copyright © 2011-2022 走看看