我看到了类似错误的响应,但是似乎没有什么能解决对我有用的解决方案。
我有一个wordpress网站,我已将其导入到docker following this tutorial中。我已经把所有事情都归结到了我应该“码头工人组成”的最后一部分,并且在主题行中列出了错误。这是我的.yml文件:
$('button').click(function() {
var $trs = $('tr:has(:checkbox:checked)', 'table');
var res = [];
$trs.each(function() {
$td = $(this).children('td');
// This is the missing part
res.push({
comp: $td.eq(0).text(),
pos: $td.eq(1).text(),
add: $td.eq(2).text(),
})
})
console.log(res);
})
答案 0 :(得分:0)
我想知道为什么您的yml文件与post中的文件不同。 我在帖子中使用了yml文件,它确实起作用。
请记住,您无法在docker-compose中映射顶级卷,因此打击是非法的,请参阅link和link以获得更多帮助。
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE FlexibleInstances #-}
class TooMany a where
tooMany :: a -> Bool
instance TooMany Int where
tooMany n = n > 42
newtype Goats = Goats Int deriving (Eq, Show, TooMany)
-- the following needs FlexibleInstances pragma
instance TooMany (Int, String) where
tooMany (n, _) = n > 33
-- or do this:
newtype AnotherTooMany = AnotherTooMany (Int, String) deriving (Eq, Show, TooMany)
instance TooMany (Int, Int) where
tooMany (n, m) = (n + m) > 44
-- THE FOLLOWING ONES ARE NOT CORRECT !!!
instance TooMany (Num a, TooMany a) => (a, a) where
tooMany (t1, t2) = (t1 + t2) > 44
newtype YetAnotherTooMany =
YetAnotherTooMany (Num a, TooMany a) => (a, a)
deriving (Eq, Show, TooMany)