小编egg*_*tbr的帖子

angularjs $ http.delete打破了ie8

$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等中运行良好.

javascript internet-explorer-8 angularjs

15
推荐指数
1
解决办法
4906
查看次数

如何在scalaz中导入===

我需要从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)

如何将===纳入范围而又不引起与主动脉的冲突?

scalaz

3
推荐指数
1
解决办法
380
查看次数