怎么获取不到H5ComponentBase(cfg)
来源:3-5 通用图文组件类-H5ComponentBase(参数设置)
从何说起_
2017-06-10
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> body{margin: 0;padding: 0;background-color: #000;font-size: 12px;} .iphone{ width: 340px;height: 540px;background-color: #fff; position: absolute;left: 50%;top: 50%;margin:-270px 0 0 -170px; } </style> <link rel="stylesheet" type="text/css" href="../css/test-H5ComponentBase.css"> <script type="text/javascript" src='../js/lib/jquery-3.2.1.min.js'></script> <script type="text/javascript" src='../js/test-H5ComponentBase.js'></script> </head> <body> <div> </div> </body> <script type="text/javascript"> var cfg = { type : 'base', text : 'text', } var h5 = new H5ComponentBase( cfg ); </script> </html>
明明代码是一样的啊 为什么报错显示H5ComponentBase是underfind愁死了
写回答
1回答
-
从何说起_
提问者
2017-06-10
解决了
022017-06-18
相似问题