console.log("success",e.data);頁面的錯誤提醒
nested exception is org.apache.ibatis.type.TypeException:
Could not set parameters for mapping: ParameterMapping
{property='name', mode=IN, javaType=class java.lang.Object, jdbcType=null, numericScale=null, resultMapId='null',
jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException:
Error setting null for parameter #2 with JdbcType OTHER .
Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property.
Cause: java.sql.SQLException: 無效的列類型
Could not set parameters for mapping:
ParameterMapping{property='name', mode=IN, javaType=class java.lang.Object, jdbcType=null,
numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}.
Cause: org.apache.ibatis.type.TypeException: Error setting null for parameter #2 with JdbcType OTHER .
Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property.
Cause: java.
sql.SQLException: 無效的列類型
jdbcType的類型匹配
頁面傳值時對象未匹配正確
輸入映射類型出錯
An invalid property 'name' was found in mapping #{id,name=#{name}.
Valid properties are javaType,jdbcType,mode,numericScale,resultMap,typeHandler,jdbcTypeName
11:35:50.891 [localhost-startStop-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Creating shared instance of singleton bean 'sqlSessionFactory'
提交之前保證是測試過並且沒有問題的,把alert全刪了啊,測試都用console.log()
"^[\\w-]{1,50}$"
ctrl+F5強制刷新
1-沒有查無記錄的模態框
2-電話無法撥打
3-天假
/^(([1-9]+)|([0-9]+\.[0-9]{1,2}))$/
ng-pattern="/^(([1-9]+)|([0-9]+\.[0-9]{1,2}))$/"
<div class="col-md-4">
<label for="pattern">4. 模式匹配</label>
</div>
<div class="col-md-8">
<input type="text" id="pattern" name="pattern" ng-model="user.pattern" ng-pattern="/^[a-zA-Z]*\d$/" class="form-control" />
<span class="glyphicon glyphicon-ok form-control-feedback"
ng-show="myForm.pattern.$dirty && myForm.pattern.$valid"></span>
</div>
onkeyup="value=value.replace(/[^\d]/g,'')"
<input type=" text" name=" inputText" required ng-trim=" true" ng-model="userNum" ng-pattern=" /^[0-9]*[1-9][0-9]*$/" ng-maxlength=" 6〃 maxlength=" 6〃/>
<span ng-show="myForm.inputText.$error.required">必須得寫數字</span>
<span ng-show="myForm.inputText.$invalid&&!myForm.inputText.$error.required">非法的數字</span>
name="inputText" ng-model="money" required ng-trim="true" ng-pattern="/^(([1-9]*)|([0-9]+\.[0-9]{1,2}))$/"
<html>
<head>
<script>
function $(e){return document.getElementById(e);}
function go()
{
var reg=/^[1-9]{1}[0-9]{14}$|^[1-9]{1}[0-9]{16}([0-9]|[xX])$/;
if(reg.test($("check").value))
{alert("ok");}
else{alert("no");}
}
^1[0-9]{10}$
</script>
</head>
<body>
<input id="check" type="text" onchange="go()" />
</body>搜索
</html>
ng-class="{false:'glyphicon glyphicon-phone-alt text-green ',true:'glyphicon glyphicon-earphone text-green '}[tel.isphone]"
Error:[$parse:lexerr]:angularjs語法錯誤
清理緩存很重,有的時候就是緩存的原因頁面一直報錯
$('#house_search').typeahead({
source: function (query, process) {
var results = $.map(houseNos, function (house) {
return String(house.ID);
});
process(results);
},
highlighter: function (item) {
return item ;
},
updater: function (item) {
console.log('item',item);
return item;
}
});
$('#customer_search').typeahead({
source: function (query, process) {
var results = $.map(customerNos, function (customerNos) {
console.log();
return String(customerNos.CRID);
});
process(results);
},
highlighter: function (item) {
return item ;
},
updater: function (item) {
console.log('item',item);
return item;
}
});
<select class="form-control" ng-model="exchange.exchangeNo"
ng-options="contractno.CONTRACT_NUM as contractno.CONTRACT_NUM for contractno in contractnos"
required>
<option selected value="">--請選擇--</option>
<input id="house_search" type="text" ng-model="info.housesid"
class="form-control" ng-model="info.housesid"
placeholder="房源編號" data-provide="typeahead"
ng-change="delHouseNos(info.housesid)" required/>
DataCenter.get("inquire/customernos",1);
DataCenter.addEventListener("customernos",function(e){
customerNos = e.data;
$scope.$apply();
});
assistantStoreNos
assistantRegionalNos
var assistantStoreNos =[];//門店經理姓名
var assistantRegionalNos=[];//區域經理姓名
#assistantStore_search
#assistantRegional_search
//查詢客源編號
@RequestMapping(value = "/customernos/{id}", method = RequestMethod.GET)
public Object queryCustomerNos(@PathVariable("id") Integer id){
Object o = service.getCustomerNos();
return DataEvent.wrap("customernos", o);
}
<!--客源編號查詢-->
<select id="getCustomerNos" resultMap="M">
SELECT
B.CRID
FROM
CUSTOMER.CUSTOMERS A ,CUSTOMER.CRESOURCE B
WHERE
A.CID = B.CID
AND A.BIZTYPE = 2
</select>
SELECT
B.CRID
FROM
CUSTOMER.CUSTOMERS A ,CUSTOMER.CRESOURCE B
WHERE
A.CID = B.CID
AND A.BIZTYPE = 2
select emp_name from cbssys.t_Employees
做下拉框提示時的bootstrap-typehead插件
$('#customer_search').typeahead({
source: function (query, process) {
var results = $.map(customerNos, function (customerNos) {
console.log();
return String(customerNos.CRID);
});
process(results);
},
highlighter: function (item) {
return item ;
},
updater: function (item) {
console.log('item',item);
return item;
}
});
[ERROR] /E:/intellJ/CBS-Transactions/src/main/java/com/wiwj/cbs/transactions/service/impl/link12/Link12ServiceImpl.java:[217,24] 找不到符號
配置maven時重要的一步
-Dmaven.multiModuleProjectDirectory=$M2_HOME
svn資源下載路徑
http://10.10.101.71:81/repos/CBS
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique
data-dismiss="modal 是一個定制的 HTML5 data 屬性。用於關閉模態窗口。
其中ng-show和ng-hide是一樣的,只不過ng-show是滿足條件就展示,ng-hide是滿足條件就隱藏,下面就不再提到ng-hide。
Font Awesome完美的圖標字體只為Bootstrap設計
bootstrap-star-rating,jquery星星級評分插件
<div class="panel-footer">
<nav class="pull-right">
<pagination num-pages="pages" curr-page="page" on-select-page="selectPage(page)">
</pagination>
</nav>
</div>
//清空模態框,寫上這段話就不用去手動的頁面模態框的緩存了
$(".modal").on("hidden.bs.modal",function(){
$(this).removeData("bs.modal");
});
alert-dismissable可取消的警告框
http://localhost:8080/transactions/fund/view/fundList.html
無法訪問服務器,可以對下面的文件進行修改最后兩項加上#(2016年4月20日下午16:50)
C:\Windows\System32\drivers\etc\hosts
租賃合同編號:sj009sj
DataCenter.find("contractRent/myrentList", $scope.d)
find尋找這個URL,並為之賦值
List<Map<String, String>> list =contractRentDao.queryList(data, new RowBounds(Integer.parseInt(data.get("page")), Integer.parseInt(data.get("size"))));
這個page和size就是說要我們自行設置
DataCenter流程再認識:
1、首先通過angularjs雙向綁定或是jQuery從頁面獲取數據或狀態,通過這些數據或狀態來執行調用不同的DataCenter里面的方法(find\get\modify);
2、find、get、modify這些方法觸發的都是url地址,並同時將參數或狀態值傳遞過去進而執行。
3、執行上述方法完畢之后,獲取監聽的結果或狀態,並通過angularjs雙向綁定來完成向頁面的數據和狀態的傳輸
$scope.cancel = function () {
if(!confirm('確認作廢?')) return;
DataCenter.modify("contractRent/cancel", {CID:$scope.CID, COMPANY:1, STT:98, MM:$('#MM').val(),CONTRACTNO:$scope.cno}, $scope.CID);
}
刪除確認框,刪除之前提示是否刪除?如果確認便調用modify來修改,如果取消的話就會返回,不會執行作廢url
if($("#iscancel").is(":checked")){
$scope.d['STT'] = 98;
}
這句話就是說單選框是否被選中
,如果選STT就會有值
data-main
<script src="../../js/config.js"></script>
<script src="http://static.bacic5i5j.com/cdn/lib/jquery/jquery-2.1.4.min.js"></script>
<script src="http://static.bacic5i5j.com/cdn/lib/require/2.1.9/require.min.js" data-main="../js/detail"></script>
js里面的substring()而不是subString();
jqeury的在學習
<script
src="http://libs.baidu.com/jquery/1.8.3/jquery.min.js">
</script>
<script>
function myFunc(){
$("#h00").html("hello jquery!!!")
}
$(document).ready(myFunc)
</script>
jquery增加css樣式
$("#h01").attr("style","color:red").html("Hello jquery")
<input type="text" onblur="myFunc()" value="hehe"/>
<script>
function myFunc(){
setInterval(function(){
var name=prompt("Please enter your name:","Your name")
alert("歡迎您:"+name+"先生/女士");
},3000);
}
</script>
