var fn = function(){
$('div').fadeTo('fast', 1);
//ИМХО лучше так, $(this).fadeTo('fast', 1);
}
$('div').mouseenter(fn);
> var mk=require("./Make.js");
undefined
> var elem = new mk.Make();
undefined
> console.log(typeof elem.aaa);
function
undefined
> elem.aaa();
undefined
.............. ПЕРЕОПРЕДЕЛИЛ: this.aaa = function () { return "OK"; }
> var mk=require("./Make.js");
undefined
> var elem = new mk.Make();
undefined
> console.log(typeof elem.aaa);
function
undefined
> elem.aaa();
'OK'
сборка dll:
.............
namespace testform
{
public partial class FormDll : Form
{
public FormDll()
{
InitializeComponent();
}
}
}
.............
приложение
Assembly assembly = Assembly.LoadFile("C:\\prg\\testform.dll");
Type type = assembly.GetType("testform.FormDll ");
Form form = (Form)Activator.CreateInstance(type);
form.ShowDialog();
#!/bin/sh
# chkconfig: 2345 90 60
#/etc/init.d/nodeup
export PATH=$PATH:/usr/local/bin
export NODE_PATH=$NODE_PATH:/usr/local/lib/node_modules
case "$1" in
start)
cd /home/administrator/ASP/scripts
exec forever start --sourceDir=/home/administrator/ASP/scripts -p /home/admini strator/ASP/scripts/log index.js
;;
stop)
exec forever stop --sourceDir=/home/administrator/ASP/scripts index.js
;;
*)
echo "Usage: /etc/init.d/nodeup {start|stop}"
exit 1
;;
esac
exit 0