嗨以前我使用过grunt,我想知道可用的任务使用grunt --help.但与gulp使用相同,gulp --help它没有显示.知道gulp中可用任务列表的命令是什么
错误消息是
Error: [$parse:syntax] http://errors.angularjs.org/1.3.0-beta.13/$parse/syntax?p0=list.type&p1=is%20unexpected%2C%20expecting%20%5B%3A%5D&p2=9&p3=Fedit(%7B%7Blist.type%7D%7D%2C%7B%7Blist.id%7D%7D)&p4=list.type%7D%7D%2C%7B%7Blist.id%7D%7D)
    at Error (native)
    at http://127.0.1.1/AnjularJS/ng-Films/Scripts/Vendor/angular.min.js:6:457
    at bb.throwError (http://127.0.1.1/AnjularJS/ng-Films/Scripts/Vendor/angular.min.js:169:490)
    at bb.consume (http://127.0.1.1/AnjularJS/ng-Films/Scripts/Vendor/angular.min.js:170:424)
    at bb.object (http://127.0.1.1/AnjularJS/ng-Films/Scripts/Vendor/angular.min.js:177:474)
    at bb.primary (http://127.0.1.1/AnjularJS/ng-Films/Scripts/Vendor/angular.min.js:169:121)
    at bb.unary (http://127.0.1.1/AnjularJS/ng-Films/Scripts/Vendor/angular.min.js:175:273)
    at bb.multiplicative (http://127.0.1.1/AnjularJS/ng-Films/Scripts/Vendor/angular.min.js:175:6)
    at bb.additive (http://127.0.1.1/AnjularJS/ng-Films/Scripts/Vendor/angular.min.js:174:399)
    at bb.relational (http://127.0.1.1/AnjularJS/ng-Films/Scripts/Vendor/angular.min.js:174:263) <button ng-click="Fedit({{list.type}},{{list.id}})" class="btn btn-primary"> 
Run Code Online (Sandbox Code Playgroud)
使用代码是
<tbody ng-repeat="list in lists">
  <tr>
    <td>
    <button ng-click="Fedit({{list.type}},{{list.id}})" class="btn btn-primary">Edit</button>
    </td>
    <td>
      <button ng-click="Fdelete({{list.type}},{{list.id}})" class="btn btn-primary">Delete</button>
    </td>
  </tr>
</tbody>
Run Code Online (Sandbox Code Playgroud)
该函数实际上采用列表数组中的两个Arguments.但我不知道该怎么办.
我需要使用javascript基于键值合并两个json对象.
我有两个不同的变量g和c.
术语:所有值都需要合并.
var g = [ { id: 36, name: 'AAA', goal: 'yes' },
    { id: 40, name: 'BBB', goal: 'yes' },
    { id: 57, name: 'CCC', goal: 'yes' },
    { id: 4, name: 'DDD', goal: 'yes' },
    { id: 39, name: 'EEE', goal: 'yes' },
    { id: 37, name: 'FFF', goal: 'yes' },
    { id: 59, name: 'GGG', goal: 'yes' },
    { id: 50, name: 'III', goal: 'yes' },
    { id: 43, name: 'HHH', goal: 'yes' },
    { …Run Code Online (Sandbox Code Playgroud) 我正在使用角度ui.grid我的问题是当我使用下面的单击它所选择的行时
enableRowSelection: true,
enableRowHeaderSelection: false,
multiSelect: false 
Run Code Online (Sandbox Code Playgroud)
我换了之后
enableRowSelection: true,
enableRowHeaderSelection: true,
multiSelect: false 
Run Code Online (Sandbox Code Playgroud)
现在只选择复选框工作,但没有工作点击行请帮助...
我必须显示两种类型的gridOptions而不使用两个网格尝试动态更改gridOptions不工作(一次工作).
工作示例http://plnkr.co/edit/4QKGIB?p=preview.
$scope.grid1=function(){
   $scope.gridOptions = $scope.gridOptions1;
   $scope.gridApi.core.notifyDataChange(uiGridConstants.dataChange.ALL);
 }
 $scope.grid2=function(){
   $scope.gridOptions = $scope.gridOptions2;
   $scope.gridApi.core.notifyDataChange(uiGridConstants.dataChange.ALL);
 }
Run Code Online (Sandbox Code Playgroud) 在一个页面中,我有两个单选按钮,这两个单选按钮产生不同的结果:
第一个按钮是关于学生详细信息。我的 json 数组如下所示:
 [{"Name":"A", "Class":"x", "Section":"abcd", "DOB": "XYZ"},
  {"Name":"B", "Class":"x", "Section":"abcd", "DOB": "XYZ"},
  {"Name":"C", "Class":"x", "Section":"abcd", "DOB": "XYZ"},
  {"Name":"D", "Class":"x", "Section":"abcd", "DOB": "XYZ"}]
Run Code Online (Sandbox Code Playgroud)
我的第二个按钮是学术细节。我的 json 数组如下所示:
  [{"Name":"A", "Language":"x", "English":"90", "Maths": "90"},
   {"Name":"B", "Language":"x", "English":"80", "Maths": "80"},
   {"Name":"C", "Language":"x", "English":"70", "Maths": "70"},
   {"Name":"D", "Language":"x", "English":"60", "Maths": "60"}]
Run Code Online (Sandbox Code Playgroud)
以前我遵循类似这样的代码
<body>
  <div ng-app="" ng-init='names =  [{"Name":"A", "Class":"x", "Section":"abcd", "DOB": "XYZ"},
      {"Name ":"B ", "Class ":"x ", "Section ":"abcd ", "DOB ": "XYZ "},
      {"Name ":"C ", "Class ":"x ", "Section ":"abcd ", …Run Code Online (Sandbox Code Playgroud) 我使用以下HTML
<div id="chatid" name="1">
  <img src="http://placehold.it/50/55C1E7/fff" alt="User Avatar" class="img-circle" /> John
</div>
<div id="chatid" name="2">
  <img src="http://placehold.it/50/55C1E7/fff" alt="User Avatar" class="img-circle" /> James
</div> 
Run Code Online (Sandbox Code Playgroud)
我使用以下jquery脚本
$(document).ready(function() {
  $("#chatid").click(function() {
    thread = $(this).attr('name');
    $("#chatmessages").load('fetchmessages.php?id=' + thread);
    //alert($(this).attr('name'));
    return false;
  });
});
Run Code Online (Sandbox Code Playgroud)
这只是在点击第一个"chatid"Div时给出的名称,有没有办法让我返回任何"chatid"Div的名字?
谢谢