$http.delete('/api/carts/' + productCode).
success(function() {
cart.products = someMethod();
updateTotals();
}).
error(function() {
console.log('Could not remove product from card: ' + productCode);
});
Run Code Online (Sandbox Code Playgroud)
IE8抱怨第一行的"预期标识符".该代码在Firefox,Chrome等中运行良好.
我需要从scalaz使用EqualsOps(===),但是导入scalaz.Scalaz._会给我与anorm的get方法的命名冲突。
这是编译错误:
reference to get is ambiguous;
[error] it is imported twice in the same scope by
[error] import scalaz.Scalaz._
[error] and import anorm.SqlParser._
Run Code Online (Sandbox Code Playgroud)
如何将===纳入范围而又不引起与主动脉的冲突?