netease-youdao / hex Goto Github PK
View Code? Open in Web Editor NEWheX
License: Other
heX
License: Other
只要css中存在
-webkit-transform: scale(1.2);
就会卡住
如何解决
通过获取到的文件路径是"C:\fakepath"+文件名的形式,请问怎么才能获取到真实的绝对路径呢。
代码如下:
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
</head>
<body>
<div>hello world</div>
<script>
var http = require('http');
console.log(http);
http.get("http://www.baidu.com", function(res) {
console.log("Got response: " + res.statusCode);
//console.log(res.body);
}).on('error', function(e) {
console.log("Got error: " + e.message);
});
</script>
</body>
</html>
第一次运行,控制台可以打印出 Got response: 200
而后刷新页面,就开始报错了:
Uncaught TypeError: undefined is not a function node.js:374
_tickCallback node.js:374
无论是Hex还是HeXium,都必须将程序关闭,再重新启动。
大神给我们菜鸟一些入门的教材吧
未做任何修改,分别尝试下载hex_1453_end_user_windows和hex_1453_web_develop_windows,运行hexclient.exe,都报Read manifest.json error错误,何故?
本机为xp操作系统
在Nodejs里,要引用别人写的package可以用require,package放在根目录下的node_modules文件夹里,在Hex里要引用别人写的package要怎么用?
win7下关闭窗口,HeXium不能退出进程
这个项目真的很不错, 希望能够做起来
示例中,使用hexclient.exe来启动。
如何像有道词典一样,将项目编译成一个EXE:YodaoDict.exe
在两台Windows XP的机器上运行,都是一样的情况,什么问题?
rt
是否能引用外部dll例如c++ dll的某些方法? 抱歉.相关文档太少..所以先在这里问问..
如题,鼠标点窗口上任何区域都无反应,为无边框窗体。当前环境win7 64位
控制台报错:Uncaught Error: %1 is not a valid Win32 application.
F:\sources\node-addons\hello\binding.node
try{
var SerialPort = require("serialport").SerialPort
alert(SerialPort);
var serialPort = new SerialPort("COM4", {
baudrate: 9600,
databits:8,
stopbits:1,
parity:'none',
flowcontral:false,
bufferSize:2000
}, false); // this is the openImmediately flag [default is true]
serialPort.open(function () {
console.log('open');
serialPort.on('data', function(data) {
console.log('data received: ' + data);
});
serialPort.write("ls\n", function(err, results) {
console.log('err ' + err);
console.log('results ' + results);
});
});
} catch(e){
alert(e.message);
}
提示错误为:
a valid Stream instance must be passed in
jquery的slideUp slideDown, fadeIn, out都无法渲染。
http://www.getuikit.net/docs/animation.html
这个页面直接加载不出来。
hex 解压到XP系统的桌面上,直接打开会卡死,没任何反应。
解压到C盘根目录下或是D盘,都没问题。
同问页面做好后如何封装成EXE安装文件
另外下载谷歌浏览器的代码的网址打不开,难道是被墙了?
那个图标怎么更换啊,貌似打包后还是那个图标啊
另一个程序启动当前程序并传入了参数,如HexClient.exe "token=123"
如何js中获取参数
oDiv是页面上的一块区域,我想通过用鼠标移动oDiv来移动整个window窗口,但是下面的代码一直有问题,请问如何实现
oDiv.onmousedown = function(ev){
var ev = ev || event;
document.onmousemove = function(ev){
hex.moveTo( ev.clientX, ev.clientY);
// hex.move();
}
document.onmouseup = function(){
document.onmousemove = null;
document.onmouseup = null;
}
}
不能调用 javascript 打印方法
<iframe src="http://www.baidu.com" id="PrintFrame" /> <script> PrintFrame.window.print(); </script>配置文件已经开启插件了,为什么不支持flex呢
我知道系统的user32.dll提供了FindWindowEx和SetParent两个方法的支持,可以类似桌面小日历之类嵌入桌面。点击显示桌面不会最小化。是否可以提供下这个功能的manifest配置及js方法调用的支持?
but in hex ,it is good.
code:
<div id="step-2" style="position: absolute; -webkit-transform: translate3d(0px, 0px, 0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1); ">
<object id="tcx014yi11pk" name="prezi_tcx014yi11pk" width="941px" height="479px" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param name="wmode" value="transparent">
<param name="move" value="img/f4p32orny2.swf">
<embed id="Embed_tcx014yi11pk" name="preziEmbed_tcx014yi11pk" width="941px" height="479px" src="img/f4p32orny2.swf" type="application/x-shockwave-flash" bgcolor="#ffffff" wmode="transparent" >
</object>
</div>
在页面iframe中window.require是undefined.
设置配置launch_node_in_all_pages为true依然是如此。
保存为UTF-8编码时报错“Read manifest.json error!”。是否只能是ANSI编码?
我想利用写的程序做一些curl操作,需要使用到request模块,该怎么操作?
发现 hex 无法播放音频,请问 hex不支持 html5 的 audio 标签么?
按照指南里面的说法将first_page设置为$(AppDir)test/index.html,一直无法加载。
但将first_page设置成一个url就可以了。
—————————————————————————————————————————————
发现是我之前目录放错了。
不懂如何打包成exe文件,是否有相关图文教程,希望能简单点的,我不懂C和Java的
为什么不和 node-webkit 合并~
HeXium里可以调试前端js代码,但是碰到require nodejs模块时如何进入调试
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Hello World</title>
<link href="hello.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Loading...</h1>
<script>
require('./test/hello_world');
</script>
</body>
</html>
如以上代码,在<script></script>内容处可以下断点,也能正常进入断点,但是无法step in,在调试窗口的sources里也查看不到相应的文件,该如何处理?
系统托盘是很实用的功能~ 有了这个就可以实现登录,大量web项目都能桌面化了~
这个项目不错,有个详细使用文档就更好。
文档是项目应用的重要因素。
http://hex.youdao.com/zh-cn/index.html
.perspective_box .snapshot 在 chrome 版本 33.0.1750.154 两个块之间有个缝,百分比宽度半个像素显示问题,建议去掉 width: 20%;
使界面缩小到托盘,这个功能不错的啊,希望能增加这个功能。
想让程序启动时隐藏,当界面加载完后再显示。
但是配置了"launch_state":"hidden"无效,界面还是会在加载完前显示,
同时:
window.addEventListener('DOMContentLoaded', function (e) {
console.log(hex.formState);//这里获取的值是0,也就是NORMAL状态
}, false);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.