当前位置:网站首页>一个报错, Uncaught TypeError: ModalFactory is not a constructor
一个报错, Uncaught TypeError: ModalFactory is not a constructor
2022-07-17 13:31:00 【开心每一天!】

参考了这一篇 JS Uncaught TypeError: xxx is not a constructor 问题解析_蕭朙偉的博客-CSDN博客
果然是变量名称与函数(类可以视为构造函数)重复了。因为从GO来讲,
{
ModalFactory:undefined
}
执行到这一句:var ModalFactory = new ModalFactory(dom)
ModalFactory还是undefined,肯定不是构造函数了。
果然改个变量名,问题就解决了。
边栏推荐
- 英伟达用AI设计GPU:最新H100已经用上,比传统EDA减少25%芯片面积
- Unity3d 模型中心点的转换(源代码)
- ENVI_IDL:使用反距离权重法选取最近n个点插值(底层实现)并输出为Geotiff格式(效果等价于Arcgis中反距离权重插值)
- Pytoch and weight decay (L2 norm)
- Tencent cloud server uses image to deploy WordPress personal website!
- Integrated network architecture and network slicing technology of air, earth and sea
- 【在vivado中调ila IP核】
- Know what it is, and know why, JS object creation and inheritance
- Pytoch learning record 2 linear regression (tensor, variable)
- 发明闪存能赚多少钱?这是一个日本的狗血故事
猜你喜欢

Antd drop-down multiple options to transfer values to the background for query operations

英伟达用AI设计GPU:最新H100已经用上,比传统EDA减少25%芯片面积

Design of the multi live architecture in different places of the king glory mall

ENVI_IDL:使用反距离权重法选取最近n个点插值(底层实现)并输出为Geotiff格式(效果等价于Arcgis中反距离权重插值)

Game theory (Depu) and investment (40/100)

Svn learning

How to use SVG to make text effects arranged along any path

Summary of port mirroring methods with VDS or NSX under vSphere

Pytoch framework learning record 1 cifar-10 classification

antd 下拉多选传值到后台做查询操作
随机推荐
2022/7/14
Know what it is, and know why, JS object creation and inheritance
Pytoch and weight decay (L2 norm)
UE4 understanding of animation blueprint
LeetCode 2335. Minimum total time required to fill the cup
(一)了解MySQL
String类型函数传递问题
MFC | self drawn CEdit control under the framework
常见集合特性
Pytoch framework learning record 1 cifar-10 classification
Prospect of 6G global convergence network
"Baidu side" angrily sprayed the interviewer! Isn't it that the tree time increases by a line number?
Pytorch. NN implementation of multi-layer perceptron
修改Jupyter默认路径看这篇!
About hping streaming test tool
6G smart endogenous: technical challenges, architecture and key features
[design process] Net ORM FreeSQL wheredynamicfilter dynamic table query function
博弈论(depu)与投资(40/100)
Game theory (Depu) and investment (40/100)
【PostgreSQL 】PostgreSQL 15对distinct的优化