请教老师plugin的写法,很多算法需要javascript去写
construct2吧
全部回复
仅看楼主
level 1
anger_bd 楼主
内裤函数太少了,很多算法需要javascript去写呢,急求
2014年10月27日 14点10分 1
level 9
直接看官方的插件原始码。 rotate behavior是很好的开始。
2014年10月27日 14点10分 2
谢谢,我先看看rotate
2014年10月27日 14点10分
level 1
anger_bd 楼主
如果不写plugin,怎么直接运行一句js代码返回结果呢,例如:
return Stirng.charCodeAt(i)
或者
return String.fromCharCode(97);
2014年10月27日 15点10分 3
level 9
Browser物件的expression: ExecJS
Browser.ExecJS("String.fromCharCode(97)")
2014年10月27日 16点10分 4
参数是javascript code string
2014年10月27日 16点10分
level 9
也可以从javascript里呼叫官方的function物件, 参考官方手册的function物件说明的"Javascript integration"段落.
2014年10月27日 16点10分 5
谢谢,有你的提示学习起来快捷多了
2014年10月27日 22点10分
老师,manual的function找不到Javascript integration,请问javascript怎么呼叫function
2014年10月28日 00点10分
2014年10月28日 04点10分
回复 rexrainbow :呵呵,难怪,下载版的找不到
2014年10月28日 05点10分
1