当前位置:网站首页>一个报错, 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,肯定不是构造函数了。
果然改个变量名,问题就解决了。
边栏推荐
- [PostgreSQL] PostgreSQL 15 optimizes distinct
- LeetCode 2335. 装满杯子需要的最短总时长
- JSP based novel writing and creation website
- input number 純數字輸入 限制長度 限制 最大值
- 树链剖分思想讲解 + AcWing 2568. 树链剖分(dfs序 + 爬山法 + 线段树)
- 【CSP-J 2021】总结
- If you use mybatics to access Damon database, is it exactly the same? Because the SQL syntax has not changed. Right?
- 2022/7/15
- IP SAN拥有独立的文件系统,应用服务器通过网络共享协议访问到IP SAN后,可以对文件系统中的文件进行读写操作
- 军品研制过程所需文件-进阶版
猜你喜欢

(2) Using MySQL

How to build dashboard and knowledge base in double chain note taking software? Take the embedded widget library notionpet as an example

ROS 重名

C serialport configuration and attribute understanding

ENVI_ Idl: use the inverse distance weight method to select the nearest n points for interpolation (bottom implementation) and output them to GeoTIFF format (the effect is equivalent to the inverse di

LeetCode 2319. 判断矩阵是否是一个 X 矩阵

过拟合与欠拟合

【在vivado中调ila IP核】

树链剖分思想讲解 + AcWing 2568. 树链剖分(dfs序 + 爬山法 + 线段树)

LeetCode 2331. 计算布尔二叉树的值(树的遍历)
随机推荐
LeetCode 2325. Decrypt message (map)
(一)了解MySQL
NPC, Microsoft, etc. proposed inclusivefl: inclusive federal learning on heterogeneous devices
Antd drop-down multiple options to transfer values to the background for query operations
Game theory (Depu) and investment (40/100)
ENVI_IDL:使用反距离权重法选取最近n个点插值(底层实现)并输出为Geotiff格式(效果等价于Arcgis中反距离权重插值)
(1) Learn about MySQL
Pytoch learning record 2 linear regression (tensor, variable)
Win10的环境变量配置
ue4对动画蓝图的理解
可定义的6G安全架构
Integrated network architecture and network slicing technology of air, earth and sea
vulnhub inclusiveness: 1
Explanation of tree chain dissection idea + acwing 2568 Tree chain dissection (DFS sequence + mountain climbing method + segment tree)
Design of the multi live architecture in different places of the king glory mall
LeetCode 2325. 解密消息(map)
LeetCode 2249. 统计圆内格点数目
SVN学习
ROS 重名
金鱼哥RHCA回忆录:CL210描述OPENSTACK控制平面--识别overclound控制平台服务+章节实验