在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/ Java問答
陪我終 回答

JSON.stringify完了寫文件。nodejs用fs模塊,很簡單的

尐潴豬 回答

maven compiler插件的問題
嘗試一下 使用pluginManagement 如下配置:

<build>
 <pluginManagement>
     <plugins>
         <plugin> ... </plugin>
         <plugin> ... </plugin>
               ....
     </plugins>
 </pluginManagement>
</build>

項目不支持es6語法,嘗試模塊化改寫的

        // 模板引擎補充
        template.defaults.imports.Balance = function(number) {
            return number.toFixed(2);
        }
        // 當(dāng)所有組件準(zhǔn)備好后執(zhí)行內(nèi)部回調(diào)方法
        appcan.ready(function() {

            uexWindow.setWindowScrollbarVisible('false');

            appcan.frame.setBounce(1, function(type) {
                $("#pullstatus").html("");
            }, function(type) {
                $("#pullstatus").html("");
            }, function(type) {
                $("#pullstatus").html("松手了,產(chǎn)生事件了,開始更新數(shù)據(jù)!");
                // 下拉事件發(fā)生
                appcan.frame.resetBounce(1);
                var num = Number(pageNo) * limit;

                $("#pullstatus").html("");
                // alert("totalRows=" + totalRows)

                if (Number(totalRows) <= num) {
                    appcan.window.openToast({
                        msg : '沒有更多',
                        duration : 1000,
                        position : 5,
                        type : 0
                    });
                    return;
                }

                pageNo = Number(pageNo) + 1;
                Orders.addData();
            });
            Orders.init();

        });
        var Orders = {
            init : function() {
                this.queryCusBasOrg();
                this.options().bind();
            },
            options : function() {
                var yue = this,
                    options = {};
                yue.options.companyList = document.getElementById('companyList');
                yue.options.bills_list = document.getElementById("bills_list");
                yue.options.tishi = document.getElementById('tishi');
                return yue;
            },
            bind : function() {
                var yue = this;
                this.options.companyList.onchange = function() {
                    yue.changeCompany();
                }
            },

            // 獲取公司列表
            queryCusBasOrg : function() {
                var yue = this;
                var func = yue.showCompanyCallback.bind(yue);

                ajaxPostQuery(URL + "/app/cus/queryCusBasOrg", "", func, "text");

            },
            // 回調(diào)
            showCompanyCallback : function(data) {
                var yue = this;
                var tishi = yue.options.tishi;
                var companyList = yue.options.companyList;

                if ( typeof data == "string") {
                    data = JSON.parse(data);
                };

                var html = template('Company_tmpl', {
                    list : data
                });

                $('#companyList').html(html);
                tishi.style.height = "5em"

                var linkId = companyList.value;

                Orders.queryBills(linkId);
            },
            // 獲取訂單數(shù)據(jù)
            queryBills : function(linkId) {
                var yue = this;
                var paramJsonStr = "&pager.pageNo=" + pageNo + "&pager.pageSize=" + pageSize + "&cusOrgLinkid=" + linkId;
                var func = yue.showBillsCallback.bind(yue);
                ajaxPostQuery(URL + "/app/cus/queryCusPayMoney", paramJsonStr, func, "text");
                appcan.window.openToast('正在加載...', '0', '5', '1');

            },
            // 獲取訂單數(shù)據(jù)回調(diào)
            showBillsCallback : function(data) {
                var yue = this;
                var tishi = yue.options.tishi;
                var bills_list = yue.options.bills_list;

                appcan.window.closeToast();

                if ( typeof data == "string") {
                    data = JSON.parse(data)
                };
                totalRows = data["pager.totalRows"];
                // alert(totalRows)

                var html = '';
                if (data === 0) {
                    html = "<div id='' class='ub ub-pc pc time-wrapper''>" + "<span class='mf-size2 time'>暫無歷史賬單</span>" + "</div>";
                    tishi.innerHTML = html;
                } else {
                    html = template('bills_tmpl', {
                        list : data.rows
                    });
                    bills_list.innerHTML = html;
                    tishi.innerHTML = "";
                }

            },
            // 下拉刷新添加數(shù)據(jù)
            addData : function() {
                var yue = this;
                var linkId = yue.options.companyList.value;
                var paramJsonStr = "&pager.pageNo=" + pageNo + "&pager.pageSize=" + pageSize + "&cusOrgLinkid=" + linkId;

                ajaxPostQuery(URL + "/app/cus/queryCusPayMoney", paramJsonStr, yue.addDataCallback, "text");
                appcan.window.openToast('正在加載...', '0', '5', '1');
            },
            // 下拉刷新添加數(shù)據(jù)回調(diào)
            addDataCallback : function(data) {
                var yue = this;
                var tishi = yue.options.tishi;
                appcan.window.closeToast();

                if ( typeof data == "string") {
                    data = JSON.parse(data)
                };
                totalRows = data["pager.totalRows"];
                // alert(totalRows)

                var html = '';
                if (data === 0) {
                    html = "<div id='' class='ub ub-pc pc time-wrapper''>" + "<span class='mf-size2 time'>暫無歷史賬單</span>" + "</div>";
                    tishi.innerHTML = html;
                } else {
                    html = template('bills_tmpl', {
                        list : data.rows
                    });

                    $('#bills_list').append(html);
                    tishi.innerHTML = '';
                }
            },
            // 城市名稱改變
            changeCompany : function() {
                var yue = this;
                yue.options.bills_list.innerHTML = "";
                var linkId = yue.options.companyList.value;
                pageNo = 1;
                yue.queryBills(linkId)
            },
            // 打開詳情頁
            openDetail : function(id) {
                appcan.locStorage.setVal('FUNDSUB_ID', id);
                appcan.window.open("detail", 'order_detail.html', 10);
            }
        }
孤島 回答

你這密碼中好像沒有加多余的參數(shù),只是記住密碼的時候,把登陸信息加密保存在cookie中了;

如果提示登陸失敗的話,應(yīng)該是

$model = M("Member");
$user = $model ->field('uid,user')-> where(array('user'=>$username,'password'=>$password)) -> find();
if($user) {

}

$user這個值為空,說明沒有查詢到相關(guān)信息;
樓主可以斷點調(diào)試一下自己的代碼,或者在關(guān)鍵的代碼下面,打印輸出進(jìn)行調(diào)試;

墨沫 回答

class也可以混淆的 反編譯也很難看懂

咕嚕嚕 回答

沒看到你的代碼,我大膽猜測問題可能出現(xiàn)在步驟3. 測試Spring Boot應(yīng)用,他的這個demo中出于便利性考慮,main和Ctrl合并到一個類中了,我這里給出分離的寫法:

/**
 * 這是Spring Boot應(yīng)用的入口類
 */
@SpringBootApplication
public class DemoApplication{
    public static void main(String[] args){
        SpringApplication.run(DemoApplication.class, args);
    }

}

在該入口類的同級或以下創(chuàng)建一個DemoCtrl類,具體如下:

@Controller
@RequestMapping("/")
public class DemoCtrl{
    /**
     * web rounter
     */
     @RequestMapping("/hi")
     public String hello(ModelMap map){
         return "index";
     }
}

然后在resource下的template目錄下創(chuàng)建你的index.html文件,啟動項目,應(yīng)該就可以看到hello spring boot了

更新一下,這里有個點需要注意一下,@RestController和@Controller面向Web的時候的區(qū)別。
如果你使用@RestController注解的話你應(yīng)該使用如下類似操作:

@RequestMapping("hi")
public ModelAndView hello(){
    return new ModelAndView("index");//改index.html 文件在template目錄下
}

如果使用的是@Controller注解的話,按照第一種方式便可以正確的映射到view了。

再次更新
如果是Spring MVC的話,在沒有配置默認(rèn)的view引擎的時候,需要把view文件寫全,如下:

/**
     * web rounter
     */
     @RequestMapping("/hi")
     public String hello(ModelMap map){
         return "index.jsp"; // 這里以jsp為例
     }
純妹 回答

這就是典型的 webpack 應(yīng)用場景,你好好看下文檔,關(guān)于模板和輸出的那部分。

青檸 回答

在對應(yīng)的restTemplate實體加上@LoadBalanced即可

任她鬧 回答

檢查下 com.coco.crud.bean.Department 是否存在。

挽歌 回答

有更詳細(xì)的異常信息沒,你提供的代碼片段看不出什么問題。

冷咖啡 回答

URLencoder.encode();
URLencoder.decode();

注解本質(zhì)上就是一個接口,它的實質(zhì)定義為: interface SomeAnnotation extends Annotation。
這個 Annotation 接口位于 java/lang/annotation 包,它的注釋中第一句話就是 The common interface extended by all annotation types.
-- 通過反射,動態(tài)修改注解的某個屬性值
筱饞貓 回答

我覺得可以利用git hook機制,先推到origin/master,然后cherry pick 到 Central/master。然后把這幾步驟寫成一個shell腳本,簡單明了

蝶戀花 回答

先看一下前端獲得了圖片的地址沒有,如果獲得了,然后在后臺接收的時候看一下獲得地址沒有,排一下是前端的問題還是后臺接收的問題

不歸路 回答

$.get()不是獲取數(shù)據(jù)嗎

跳轉(zhuǎn)頁面你可以使用 location.href=... 或者 window.open()

來守候 回答

不用正則只好字符串遍歷咯。多問一句,用正則很方便,為什么不讓用?

別瞎鬧 回答

build只是build,沒有deploy,jsp文件需要deploy到web目錄,才能生效,所以你需要確認(rèn)在build之后,把jsp復(fù)制到web目錄,否則就不能生效。