我有一个cordova pp我正在控制器中调用post方法,它在浏览器中有效,但是在构建和调试apk时出现错误
ionic.bundle.js:23826 POST http://somedomain.com/api/account/validation net :: ERR_CACHE_MISS
我的角度控制器
.controller('splashCtrl', function ($scope, $state,$http, userManager, serverConfig) {
//check if the user exist else it will redirect to login
$scope.authenticate = function () {
$http.post(serverConfig.serverUrl + '/api/account/validation').success(function (res,status) {
if (status == '200') {
//check if the user need to change password
if (window.localStorage.getItem('shouldChangePassword') && window.localStorage.getItem('shouldChangePassword')=='true') {
$state.go('setPassword');
return;
}
$state.go('tab.category');
}
}).error(function (data, status) {
console.log(status)
})
}
$scope.authenticate();
})
Run Code Online (Sandbox Code Playgroud)
有什么建议吗?
我在 html 中有两个具有相同汇总值的表,代码是在服务器端创建的,我无权生成具有不同 id 的表或...
<table summary='somefreakydummytext'></table>
<table summary='somefreakydummytext'></table>
Run Code Online (Sandbox Code Playgroud)
我想从两个表中删除第一行,但以下代码仅从第一个表中删除第一行
$("table[summary='somefreakydummytext'] tr:first").remove();
Run Code Online (Sandbox Code Playgroud)
我测试过
$("table[summary='somefreakydummytext'])
Run Code Online (Sandbox Code Playgroud)
它返回两个表。那么我如何使用 jquery 从两个表中删除第一行。
谢谢大家。
我有这个SQL工作正常
SELECT COUNT(*) AS total, e.FirstName, e.LastName
FROM [Messages] AS m
INNER JOIN Employees AS e ON m.SenderId = e.UserId
GROUP BY e.EmployeeId, e.FirstName, e.LastName
Run Code Online (Sandbox Code Playgroud)
但我希望还有完整的未读消息作为列.
我怎样才能在SQL中实现这一点?
SELECT
COUNT(*) AS total,
COUNT(where m.isRead = false) AS totalUnreadMessages,
e.FirstName, e.LastName
FROM
[Messages] AS m
INNER JOIN
Employees AS e ON m.SenderId = e.UserId
GROUP BY
e.EmployeeId, e.FirstName, e.LastName
Run Code Online (Sandbox Code Playgroud)