【uniapp框架错误】[ERROR] reportJSException >>>> exception function:createInstance, exception

h5端运行正常,一用基座连接手机端就会报这个错误reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught ReferenceError: Element is not defined

网上大部分说是props中使用了this造成的,或者引入了第三方不兼容引起的,但我看了官网,它说app端不支持。 -------------PS官网: “使用了非H5端不支持的API 小程序和App的js运行在jscore下而不是浏览器里,没有浏览器专用的js对象,比如document、xmlhttp、cookie、window、location、navigator、localstorage、websql、indexdb、webgl等对象。”

  • 6
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 18
    评论
以下是<iostream>头文件的源码: ```cpp #ifndef _IOSTREAM_H #define _IOSTREAM_H #include <ios> #include <streambuf> #include <istream> #include <ostream> extern std::ios_base::Init __ioinit; class ios_base : public std::ios_base { public: class failure : public std::exception { public: failure(const std::string&); virtual ~failure() throw(); virtual const char* what() const throw(); }; static bool sync_with_stdio(bool sync = true); static bool sync_with_stdio(bool sync = true, int& old_state); static int xalloc(); static void sync_with_stdio(); }; template <typename _CharT, typename _Traits = std::char_traits<_CharT> > class basic_ios : public std::basic_ios<_CharT, _Traits> { public: typedef _CharT char_type; typedef typename _Traits::int_type int_type; typedef typename _Traits::pos_type pos_type; typedef typename _Traits::off_type off_type; typedef _Traits traits_type; protected: basic_streambuf<char_type, traits_type>* rdbuf() const; void rdbuf(basic_streambuf<char_type, traits_type>* sb); public: basic_ios(); virtual ~basic_ios(); void clear(iostate state = goodbit); iostate exceptions() const; void exceptions(iostate except); bool good() const; bool eof() const; bool fail() const; bool bad() const; iostate rdstate() const; void setstate(iostate state); void tie(basic_ostream<char_type, traits_type>* os); basic_ostream<char_type, traits_type>* tie() const; char_type fill() const; char_type fill(char_type ch); int precision(int prec); int precision() const; int width(int wide); int width() const; static const basic_ios& __STL_CALL endl(basic_ios& __strm); static const basic_ios& __STL_CALL ends(basic_ios& __strm); static const basic_ios& __STL_CALL flush(basic_ios& __strm); }; template <typename _CharT, typename _Traits = std::char_traits<_CharT> > class basic_iostream : public std::basic_iostream<_CharT, _Traits> { public: typedef _CharT char_type; typedef typename _Traits::int_type int_type; typedef typename _Traits::pos_type pos_type; typedef typename _Traits::off_type off_type; typedef _Traits traits_type; protected: basic_streambuf<char_type, traits_type>* rdbuf() const; void rdbuf(basic_streambuf<char_type, traits_type>* sb); public: basic_iostream(); ~basic_iostream(); basic_istream<char_type, traits_type>& operator>>(basic_iostream& (*__pf)(basic_istream<char_type, traits_type>&)) { __pf(*this); return (*this); } basic_ostream<char_type, traits_type>& operator<<(basic_ostream<char_type, traits_type>& (*__pf)(basic_ostream<char_type, traits_type>&)) { __pf(*this); return (*this); } }; typedef basic_ios<char> ios; typedef basic_iostream<char> iostream; typedef basic_istream<char> istream; typedef basic_ostream<char> ostream; typedef basic_ios<wchar_t> wios; typedef basic_iostream<wchar_t> wiostream; typedef basic_istream<wchar_t> wistream; typedef basic_ostream<wchar_t> wostream; #endif /* _IOSTREAM_H */ ``` 这个头文件定义了输入输出的基本类和函数,使得我们可以在程序中使用输入输出操作。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 18
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值