我想从java程序中打开一个bat文件,该文件存在于一个有一些空间的路径上,例如&#34; C:\ Users \ yadavd2 \ eclipse-workspace \ Test_Project \ Hello World \ ABC.bat&#34; < / p>
已尝试过以下方法
var vm = new Vue({
el: '#app',
data: {
forms: [
{ name: 'Learning and Professional Development Record', category: 'HR', activeColor: 'red', views: 312},
{ name: 'New Vendor Request', category: 'Finance', activeColor: 'blue', views: 23121 },
{ name: 'On-call allowance', category: 'HR', activeColor: 'red', views: 231},
{ name: 'Overtime Claim', category: 'HR', activeColor: 'red', views: 443},
{ name: 'Alteration of Kindergarten Enrolment', category: 'Other', activeColor: 'yellow', views: 403},
{ name: 'Adjustment to vendor details', category: 'Finance', activeColor: 'blue', views: 8843}
],
selectedCategory: 'All',
search: '',
},
computed: {
filteredForms: function() {
var vm = this;
var category = vm.selectedCategory;
var forms = vm.forms.filter((form) => {
return form.name.toLowerCase().includes(vm.search.toLowerCase());
});
if(category === "All") {
return forms;
} else {
return vm.forms.filter(function(dept) {
return dept.category === category;
});
}
}
}
})
答案 0 :(得分:0)
这对我来说很好。我根本没有逃避它们。
System.getProperty("file.separator")
确保为操作系统使用正确的文件分隔符。
NSAttributedString *cancelButtonAttributedString =[[NSAttributedString alloc]
initWithString:@"Hello"
attributes:
@{
NSKernAttributeName : @(1.5)
}];
[cancelButton setAttributedTitle:bittonAttributedString forState:UIControlStateNormal];