Node-RED opcua items 二次修改记录
发布日期:2021-06-30 10:11:36
浏览次数:3
分类:技术文章
本文共 1664 字,大约阅读时间需要 5 分钟。
101-opcuaitem.html:
在:
<script type="text/x-red" data-template-name="OpcUa-Item">
后面添加:
在该script最后添加:
在:
<script type="text/javascript">
添加:
function updateopcualist() { var opcualistItem = document.getElementById("opcualist"); var opcuainputItem = document.getElementById("node-input-item"); var opcuaTypeItem = document.getElementById("node-input-datatype"); $.ajax({ headers: { "Accept": "application/json" }, dataType: "json", cache: false, url: 'aheadgetOpcuaFileContent', success: function (data) { opucalists = data["list"] var muloption = ""; for (var key in opucalists) { var item = opucalists[key]; //["ns=1;s=xxx","Boolean"] muloption = muloption + "" } opcualistItem.innerHTML="" + muloption; opcualistItem.onchange = function () { var results = opcualistItem.value.split(','); opcuainputItem.value = results[0]; //设置类型 for (i = 0; i < opcuaTypeItem.length; i++) { if (opcuaTypeItem[i].value == results[1]) {//value opcuaTypeItem[i].selected = true; break; } } } }, error: function(jqXHR,textStatus,errorThrown) { console.log("get Opcua File Content Failed"); } }); }
转载地址:https://islet.blog.csdn.net/article/details/117128338 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
初次前来,多多关照!
[***.217.46.12]2024年04月04日 23时21分46秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
COMP7404 Machine Learing——KNN
2019-04-30
COMP7404 Machine Learing——SVM
2019-04-30
COMP7404 Machine Learing——ROC
2019-04-30
COMP7404 Machine Learing——Ensemble Learning& MajorityVoteClassifier & Bagging & Boosting(Adaboost)
2019-04-30
Pylearn2
2019-04-30
Cassandra——docker
2019-04-30
CQL命令
2019-04-30
Cassandra的Allow Filtering
2019-04-30
UWB定位
2019-04-30
Weka(三)——Association and Clustering
2019-04-30
PCD(点云数据)文件格式 & pcd文件的读取与写入
2019-04-30
读取点云pcd文件转化为numpy array & 可视化(python pcl)
2019-04-30
Cloudera Quickstart(docker)
2019-04-30
docker share共享 windows本地文件夹
2019-04-30
HOG 方向梯度直方图特征
2019-04-30