我想在具有多個值的屬性中選擇幾個屬性值至print。在這個例子中 #in R
interpRef <- getNodeSet(doc,"//ns:ref[contains(@ana, 'whatAction')]", ns)
interpRef_ana <- for (i in 1:length(interpRef)) print(paste(xmlGetAttr(interpRef[[i]]
我在模型中有2個非數據庫屬性。如果其中一人有一個值,我需要返回對方一JSON響應: class Car < ApplicationRecord
attr_accessor :max_speed_on_track
attr_accessor :track
def attributes
if !self.track.nil?
super.merg