当前位置:网站首页>An error, uncaught typeerror: modalfactory is not a constructor
An error, uncaught typeerror: modalfactory is not a constructor
2022-07-19 11:14:00 【Happy every day!】

Refer to this article JS Uncaught TypeError: xxx is not a constructor Problem analysis _ Xiao Weiwei's blog -CSDN Blog 
Sure enough, it's the variable name and function ( Classes can be considered constructors ) repeated . Because from GO Speaking of ,
{
ModalFactory:undefined
}
Execute to this sentence :var ModalFactory = new ModalFactory(dom)
ModalFactory still undefined, Definitely not a constructor .
Sure enough, change the variable name , The problem is solved .
边栏推荐
- Satellite network capacity improvement method based on network coding
- input number 純數字輸入 限制長度 限制 最大值
- Input number pure digital input limit length limit maximum value
- input number 纯数字输入 限制长度 限制 最大值
- Over fitting and under fitting
- A simple output method of promise object to the result in nodejs (it is recommended to use the asynchronous ultimate scheme async+await)
- Introduction to the universal theme system of SAP appgyver
- 2022/7/14
- 英伟达用AI设计GPU:最新H100已经用上,比传统EDA减少25%芯片面积
- 6G smart endogenous: technical challenges, architecture and key features
猜你喜欢

37. Flex layout

vSphere 下借助 vDS 或 NSX 做端口镜像的方法总结

数据库锁的介绍与InnoDB共享,排他锁

Powercli script performance optimization

(1) Learn about MySQL

Four methods of traversing key value in map

Unity Dropdown(可编辑,可输入)下拉选择框,带文本联想

Pytoch and weight decay (L2 norm)

【手写数字识别】基于Lenet网络实现手写数字识别附matlab代码

Paper notes: mind the gap an empirical evaluation of impaction ofmissing values techniques in timeseries
随机推荐
Satellite network capacity improvement method based on network coding
Qt 两个重载QListWidget控件对象实现selectitem drag拖拽
树链剖分思想讲解 + AcWing 2568. 树链剖分(dfs序 + 爬山法 + 线段树)
Integrated network architecture and network slicing technology of air, earth and sea
论文笔记:Mind the Gap An Experimental Evaluation of Imputation ofMissing Values Techniques in TimeSeries
37. Flex layout
LeetCode 2335. Minimum total time required to fill the cup
最大半连通子图(tarjan缩点+拓扑排序+dp最长链)
ROS duplicate name
LOJ 2324 - "Tsinghua training 2017" small y and binary tree
pjudge#21652-[PR #4]到底有没有九【数位dp】
Pytoch realizes multi-layer perceptron manually
2022/7/16
Deep learning for generic object detection: a survey
Pytorch. NN implementation of multi-layer perceptron
AT5147-[AGC036D]Negative Cycle【dp,模型转换】
NPC, Microsoft, etc. proposed inclusivefl: inclusive federal learning on heterogeneous devices
LeetCode 2319. Judge whether the matrix is an X matrix
Ppde Q2 welcome | welcome 22 AI developers to join the propeller developer technical expert program!
Today's sleep quality record 79 points