apache / incubator-weex

Apache Weex (Incubating)
https://weex.apache.org
Apache License 2.0
13.75k stars 1.82k forks source link

[Android][iOS][Dev-tool] Unexpected behavior when xx where weex version is 0.aa.bb.cc #3301

Open junbin1011 opened 3 years ago

junbin1011 commented 3 years ago

2020-11-17 10:12:38.849 15284-15352/com.superpedestal W/System.err: java.net.MalformedURLException: no protocol: // { "framework": "Vue"} 2020-11-17 10:12:38.849 15284-15352/com.superpedestal W/System.err: !function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";function r(t){return t&&t.esModule?t:{default:t}}var o=n(1),s=r(o);s.default.el="#root",new Vue(s.default)},function(t,e,n){var r,o,s=[];s.push(n(2)),r=n(3);var a=n(4);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=a.render,o.staticRenderFns=a.staticRenderFns,o._scopeId="data-v-2964abc9",o.style=o.style||{},s.forEach(function(t){for(var e in t)o.style[e]=t[e]}),"function"==typeof register_static_styles&&register_static_styles(o._scopeId,s),t.exports=r},function(t,e){t.exports={text:{fontSize:50},button:{width:50,height:"50",marginTop:"100"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"App"},t.exports={data:{msg:"default"},created:function(){var t=weex.config.value;msg=t},methods:{click:function(){weex.requireModule("weex_event").showToast("接收来自Weex的数据")},receive:function(){}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:["wrapper"]},[n("text",{staticClass:["=text"]},[t._v("This is a html page.")]),n("text",{staticClass:["=text"]},[t._v("This is the data from native :")]),n("div",{attrs:{id:"content"}},[t._v(t._s(t.msg))]),n("button",{staticClass:["button"],attrs:{onclick:"click"}},[t._v("\n Click Me to Native and send Data!\n ")])],1)},staticRenderFns:[]}}]); 2020-11-17 10:12:38.850 15284-15352/com.superpedestal W/System.err: at java.net.URL.(URL.java:601) 2020-11-17 10:12:38.850 15284-15352/com.superpedestal W/System.err: at java.net.URL.(URL.java:498) 2020-11-17 10:12:38.850 15284-15352/com.superpedestal W/System.err: at java.net.URL.(URL.java:447) 2020-11-17 10:12:38.850 15284-15352/com.superpedestal W/System.err: at org.apache.weex.adapter.DefaultWXHttpAdapter.openConnection(DefaultWXHttpAdapter.java:130) 2020-11-17 10:12:38.850 15284-15352/com.superpedestal W/System.err: at org.apache.weex.adapter.DefaultWXHttpAdapter.access$100(DefaultWXHttpAdapter.java:45) 2020-11-17 10:12:38.850 15284-15352/com.superpedestal W/System.err: at org.apache.weex.adapter.DefaultWXHttpAdapter$1.run(DefaultWXHttpAdapter.java:75) 2020-11-17 10:12:38.850 15284-15352/com.superpedestal W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 2020-11-17 10:12:38.851 15284-15352/com.superpedestal W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 2020-11-17 10:12:38.851 15284-15352/com.superpedestal W/System.err: at java.lang.Thread.run(Thread.java:764) 2020-11-17 10:12:38.856 15284-15352/com.superpedestal E/weex: onRenderError -1002,no protocol: // { "framework": "Vue"}