Given the following code:
给出以下代码:
var msg = {
field1: val1,
field2: val2,
// more fields
};
$scope.$broadcast("EventName", msg);
Given the following code:
给出以下代码:
var msg = {
field1: val1,
field2: val2,
// more fields
};
$scope.$broadcast("EventName", msg);