本文主要是介绍轻松互联网开发平台(Easy Do IT,原WebEasy)升级预告,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
轻开平台近期会进行比较全面的一次升级,主要有以下几个方面:
强化移动App服务器开发功能
直接书写json文件
{"items":{
<chtml>
<bag id=item suffix=0><we name=name>土豆</we><we name=price>1.24</we><we name=unit>KG</we>
</bag>
<bag id=item suffix=1><we name=name>T恤</we><we name=price>68</we><we name=unit>件</we>
</bag>
<bag id=item suffix=2><we name=name>可乐</we><we name=price>2.20</we><we name=unit>瓶</we>
</bag>
<bag id=item suffix=3><we name=name>书</we><we name=price>51.24</we><we name=unit>本</we>
</bag>
</chtml>
<chtml>
<for bags=item end="@{item:getLength}"><item list="@{item:getSuffix}" end="@{item:getLength}" nolast><name>@{item:name}</name><price value>@{item:price}</price><unit>@{item:unit}</unit><time1>@{sys:time}</time1></item>
</for>
<num value>@{item:getLength}</num>
</chtml>
},"tatol":@{item:getLength}
}
直接书写xml文件
<?xml version="1.0" encoding="GBK"?>
<chtml><code>@{session:rand}</code>
</chtml>
进一步优化HTML5支持
<!DOCTYPE HTML>
<html>
<chtml file="0/style/head.htm" />
<body>
<!-- Begin Wrapper -->
<div id="wrapper"><chtml file="0/style/sidebar.htm" />
强化JspEasy扩展开发功能
<%@ page session="true" import="htok.we.html.*"%>
<%
JspEasy je = new JspEasy(request,response);
//je.show("head.html");
//je.show("head.html");
//je.getBag("head").set("mytest",je.equ("@{session:mytest}"));
je.toFile("_samples/head.html","_samples/head123.html");
je.show("_samples/head123.html");
%>
进一步简化并扩展大数据数据源集成
<?xml version="1.0" encoding="GB2312"?>
<Database DbUrl="jdbc:vertica://Node1:5433/" DriverName="com.vertica.jdbc.Driver" Name="BigDB" Password="Pass4BD" UserName="User4BD" age="80000" frequency="600" max="12" min="1" pause="1" taskFrequency="1" timesUsed="20000" trace="false" weName="Vertica数据库" More="LoginTimeout=81200,BackupServerNode=Node2,Node3,ConnectionLoadBalance=1"></Database>
集成并强化Web编辑器
<html>
<head>
<title>FCKEditor编辑器使用例子,newFCK</title>
</head>
<body>
<h3>FCKEditor编辑器使用例子,newFCK</h3>
<!-- 引入fckeditor编辑器入口文件 -->
<chtml file="editors/fckeditor/fckeditor.htm" />
<!-- 如果会话中用户ID(user_id)为空(未登录),则临时设一个ID,方便上传文件(图片等) -->
<chtml>
<if x="@{session:user_id}"><session><we name=user_id>0</we></session>
</if>
</chtml>
<!-- 提交的表单 -->
<form id="Edoit_Form" method="post" action="@{sys:path}@{sys:curPath}editor_fck_save.chtml">
<!-- 添加您需要的其他字段 -->
<input name="title" value="您的标题" style="display:none" />
<!-- 引入FCKEditor编辑器的脚本 -->
<script type="text/javascript">
setFCKHeight(300);//编辑器高度
//setFCKTool("Coder");
//setFCKTool("Basic");
//setFCKValue("");
window.onload = newFCK();//用函数 newFCK() 新建编辑器,默认文本域名称为"content"
//重写内容的函数
doReset = function ()
{//document.getElementById('Edoit_Form').reset();FCKeditorAPI.GetInstance('content').SetHTML("");
}
doSubmit = function ()
{//var tit = document.getElementById('title');//if(tit.value=="" || tit.value=="问题:")//{alert("有问题就提呗,不要客气嘛!");tit.focus();return;}var oEditor = FCKeditorAPI.GetInstance('content');var oDOM = oEditor.EditorDocument;var des;if(document.all) // If Internet Explorer.des = oEditor.EditorDocument.body.innerText;else{ // If Gecko.var r = oDOM.createRange();r.selectNodeContents(oDOM.body);des = r.toString();}des = des.Trim();if(des==""){alert("没有内容啊,写点呗!");return;}var frm = document.getElementById("Edoit_Form");frm.submit();
}
</script>
<p>
<center><input type=reset name=reset value=重写 onClick="doReset()" /> <input type="button" value="提交" onClick="doSubmit()" /></center>
</p>
</form>
</body>
</html>
敬请留意
轻松互联网开发平台(Easy Do IT)资源下载
平台及最新开发手册免费下载:http://download.csdn.net/download/tx18/8693497
开发实例:轻开B2C电子商务网站,免费下载:http://download.csdn.net/detail/tx18/8318585
轻开平台会不定期升级为大家提供更多强大而Easy的功能,请留意下载最新的版本
这篇关于轻松互联网开发平台(Easy Do IT,原WebEasy)升级预告的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!