如何测试Golang中的代码?
if let archivedItems = NSKeyedUnarchiver.unarchiveObject(withFile: itemArchivalURL.path) as? [Item] {
allPlayers = archivedItems
}
答案 0 :(得分:1)
您的程序写入$('.radio-group .feedbackCl').click(function(){
$(this).parent().find('.feedbackCl').removeClass('selected');
$(this).addClass('selected');
var val = $(this).attr('data-value');
$(this).parent().find('input').val(val);
console.log('You have selected: '+val);
});
包标准记录器,该记录器写入标准错误。编译并运行程序,查看标准错误中显示的内容。