我在我的应用程序中定义了常量,如下所示,
for(row in 1:nrow(d)){
print(row)
print(chisq.test(c(d[row,1],d[row,2])))
d$newcolumn[row] <- 3
}
我正在申请中使用如下,
angular.module('configuration', [])
.constant('Engine_API', 'http://sample.io:1929/')
有没有办法可以修改并在运行时为常量设置一个新值?
答案 0 :(得分:3)
您无法更改角度常数值。但是,如果要更改值,可以使用角度值提供程序而不是常量。
angular.module('configuration', [])
.value('Engine_API', 'http://sample.io:1929/')