nej icon indicating copy to clipboard operation
nej copied to clipboard

跨平台WEB前端开发框架

Results 14 nej issues
Sort by recently updated
recently updated
newest added

文档上提示可以使用nej-demo生成相关页面结构,但是我查了一下源码。没有,是删掉了吗?

nej官网nej.netease.com打不开了,麻烦修复下,要修改nej的代码,在没有文档的情况下,完全盲人摸象啊。

**发现错误链接:** http://nej.netease.com/help/event._$$EventTarget.html **错误代码片段:** ![image](https://user-images.githubusercontent.com/4090900/44197421-1b86de00-a171-11e8-82bf-9aafe7e072bb.png) **错误现象:** 原型方法__destroy中的this.__super()执行完之后,控件实例的__events属性其实就被重置为空对象了,那么onaftercycle事件也就不存在了,所以在this.__super()之后执行this._$dispatchEvent('onaftercycle')等任何触发事件的操作都是无效的,以下是我本地实验结果的截图: ![image](https://user-images.githubusercontent.com/4090900/44198391-d7e1a380-a173-11e8-987b-ed7a1752bb41.png) ![image](https://user-images.githubusercontent.com/4090900/44198401-e3cd6580-a173-11e8-9ee5-7ff0154210b9.png)

我们在项目中尝试使用es6/7语法编写模块,如 ```javascript define(function(){ var func2 = function(){ return new Promise((reslove)=>{ setTimeout(function(){ reslove(10); },1000) }) } var func1 = async function(){ var a = await func2(); return a; } func1(); })...

```javascript _pro.__onAnimationFrame = function(_time){ if (!this.__begin) return; if ((''+_time).indexOf('.')>=0){ _time = +new Date; } ``` iOS 10.2.1 返回的_time 部分是没有小数点的,时间不正确,就会存在动画抖动的问题

原因是Google Chrome for IOS的相关标示不是chrome,而是CriOS

需要同时兼容http、https时,_$absolute方法存在判断错误,增加了处理

event.js 与 element.js 存在循环依赖,nej 自身对循环依赖做了兼容,只会警告,运行时正常。但是作为底层库,建议解决循环依赖的问题。