function linkSSH() {
var textSave = localStorage.getItem("textSave");//这里是取值
if (textSave != null && textSave != "") {
openProgram(textSave);
} else {
layer.prompt({title: '请输入程序路径', formType: 2}, function(text, index){
$.ajax({
url : getRootPath() + "/event/openProgram.do",
type : "POST",
data:{param:param},
success : function(data) {
if (data){
localStorage.setItem("textSave", param);//这里是设置
layer.closeAll();
} else {
layer.alert("打开失败,请先检查路径是否正确");
}
}
});
});
}
}