我想知道是否有一些方法可以调整现有的已经缩小的55000行代码?
我在应用程序上工作,我想添加一些额外的东西: 通过添加新的控制器?还是新的指令?在相同的js文件或单独的新js文件?
很难弄明白,我在编码世界方面相当新,到目前为止我做过的所有测试都失败了
替代方案是运行jquery,但似乎只有在渲染dom之后才能运行它... (有多个景观的水疗中心)
我真的需要做这个修改,而且源不再存在
我迫不及待地想要你的帮助!
感谢您花时间阅读;)
<!doctype html><!--Main Page "index.html"-->
<html>
<head>
<meta charset="utf-8">
<title class="PageName">myapplitest</title>
<meta name="description" content="">
<link rel="stylesheet" href="styles/custom.css">
<link rel="stylesheet" href="customStyles/DialogBox.css">
<link rel="stylesheet" href="customStyles/button.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="source/event.js"></script>
</head>
<body id="ezApp" ng-controller="Ctrller" ng-class="currentPageClass">
<div ui-view class="height-100"></div>
<script src="scripts/scripts.f0ae5e15.js"></script> <!--angular 55000 LINES OF CODE ^-^ -->
</body>
</html>
<!-- the modifications I want to do in another app' view-->
<div class="modal-content infoModal">
<div class="modal-body">
<span id='titleJobModal' >{{jobInfo.name}}</span> <!--I want to act on this after the data is binded-->
</div>
</div>
<!-- jquery there: <script src="source/event.js"></script>
对于这个Jq片段,当我在谷歌控制台中执行它时,它可以工作......不会#34;在加载&#34;。 - &GT;
jQuery(window).ready(function() {
$('#titleJobModal').hover(
function () {
$('#titleJobModal').css('color','blue');
},
function () {
$('#titleJobModal').css('color','red');
}
); /*the real challenge is to make the text change color if particular strings are in the word I look for*/
维克多