WebFormDesigner/js/FormFuncModal.js
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$(function () {
var curFuncId = 0; //自定义函数ID
var editor = CodeMirror.fromTextArea(document.getElementById("expression"), {
lineNumbers: true, // 显示行号
matchBrackets: true,
styleActiveLine: true,
extraKeys: { "Ctrl-Space": "autocomplete" },
modex: "css/javascript/htmlmixed",
indentUnit: 4,
smartIndent: true, // 是否智能缩进
});
//自定义函数实体映射
var FormFunc = function () {
this.ID = curFuncId;
this.FuncName = $("#txtFuncName").val();
this.FuncCaption = $("#txtFuncCaption").val();
//this.FuncType = $("#selType").val();
this.FuncType = $("#selFuncType").val();
this.Description = $("#desc").val();
this.Expression = editor.getValue();
};
//函数分类基本比较固定,目前在这里写死了
var FuncTypeMapper = new Object();
FuncTypeMapper["系统函数"] = "系统函数";
FuncTypeMapper["功能函数"] = "功能函数";
FuncTypeMapper["计算函数"] = "计算函数";
function BindFuncTypeToControls() {
var innerStr = "";
for (var f in FuncTypeMapper) {
innerStr += "<option value='" + f.toString() + "'>" + FuncTypeMapper[f] + "</option>"
}
$(".funcTypeMapper").html(innerStr);
};
var InitTable = function () {
//模板列表
$("#formFuncTable").bootstrapTable({
height: 380,
method: "post",
url: "../../FormDesign/QueryByFuncType",
cache: false,
queryParamsType: "limit",
toolbar: "#toolbar",
toolbarAlign: 'left',
//search: true,
//trimOnSearch: true,
striped: false,
clickToSelect: true,
singleSelect: true,
idField: "ID",
uniqueId: "ID",
smartDisplay: true,
responseHandler: function (ret) {
return ret.Data
},
后面还有 197 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
