注:此插件需要在服务端运行,本地预览会有跨域问题!
如果我将selectAddress2.js和index.js都放在正文中,就出现如下错误,有重复
Error: [$injector:modulerr] http://errors.angularjs.org/1.2.16/$injector/modulerr?p0=app…27.0.0.1%3A8000%2Fsearch%2FpreciseDisplay%2F%23%3A917%3A8%0A angular.min.js:6:450 Angular 2 t e forEach self-hosted:266 Angular 5 q e ac c $b http://127.0.0.1:8000/search/preciseDisplay/#:915 http://127.0.0.1:8000/search/preciseDisplay/#:917回复
ReferenceError: angular is not definedindex.js:5:3 http://127.0.0.1:8000/static/liandong/js/index.js:5 http://127.0.0.1:8000/static/liandong/js/index.js:16
总是报这个错误,我是将selectAddress2.js,写在正文中,index.js引用的。然后就报这个错误
我把这个放在项目中总是提示,ReferenceError: angular is not definedindex.js:5:3
<anonymous> http://127.0.0.1:8000/static/liandong/js/index.js:5 <anonymous> http://127.0.0.1:8000/static/liandong/js/index.js:16回复
不好用
注释掉这段,复选框单选框可以使用。但是会丢失点击任意位置框不隐藏,丢失这个效果问题不大!
$(window).on('click', (function (_this) { return function () { return _this.hide(); }; })(this));